mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
00e13b1d67
understood by Perl's Test::Harness module and prove(1) commands. Update README to describe the new protocol. The work's broken down into two main sets of changes. First, update the existing test programs (shell scripts and C programs) to produce output in the ok/not ok format, and to, where possible, also produce a header describing the number of tests that are expected to be run. Second, provide the .t files that actually run the tests. In some cases these are copies of, or very similar too, scripts that already existed. I've kept the old scripts around so that it's possible to verify that behaviour under this new system (in terms of whether or not a test fails) is identical to the behaviour under the old system. Add a TODO file.
11 lines
123 B
Bash
11 lines
123 B
Bash
#!/bin/sh
|
|
# $FreeBSD$
|
|
|
|
cd `dirname $0`
|
|
|
|
executable=`basename $0 .t`
|
|
|
|
make $executable 2>&1 > /dev/null
|
|
|
|
exec ./$executable
|