Lines Matching +full:regress +full:. +full:out
2 dnl A library of routines for doing regression tests for userland utilities.
4 dnl Start up. We initialise the exit status to 0 (no failure) and change
6 dnl directory to run the tests inside.
10 TESTDIR=.
16 dnl Check $? to see if we passed or failed. The first parameter is the test
17 dnl which passed or failed. It may be nil.
20 echo "ok - $1 # Test detected no regression. (in $TESTDIR)"
23 echo "not ok - $1 # Test failed: regression detected. See above. (in $TESTDIR)"
26 dnl An actual test. The first parameter is the test name. The second is the
27 dnl command/commands to execute for the actual test. Their exit status is
28 dnl checked. It is assumed that the test will output to stdout, and that the
29 dnl output to be used to check for regression will be in regress.TESTNAME.out.
31 $2 | diff -u ${SRCDIR:-.}/regress.$1.out -
34 dnl A freeform regression test. Only exit status is checked.
39 dnl A regression test like REGRESSION_TEST, except only regress.out is used
40 dnl for checking output differences. The first argument is the command, the
41 dnl second argument (which may be empty) is the test name.
43 $1 | diff -u ${SRCDIR:-.}/regress.out -
46 dnl A fatal error. This will exit with the given status (first argument) and
48 dnl the error stream.
50 echo "Bail out! $2 (in $TESTDIR)" > /dev/stderr
53 dnl Cleanup. Exit with the status code of the last failure. Should probably
54 dnl be the number of failed tests, but hey presto, this is what it does. This
56 dnl end up using mktemp(1) or such.