fa9fbb5f01
make(1): Does not work like the other tests. Its Makefile is self-testing. m4(1): It uses complex voodo to test GNU m4(1) features. To the new framework. I had worried about passing the binary data that uudecode(1)'s test passes to diff(1) might give a user something nasty, but this is unlikely to happen as even with an unmodified old nasty diff(1) which doesn't recognise many binary files, these binary files are recognised. Using $DIFF instead of `diff' in the library and making it possible to override this with `cmp -s' might be nice some day, but as of this second, there's no immediate need.
32 lines
548 B
Bash
32 lines
548 B
Bash
# $FreeBSD$
|
|
|
|
REGRESSION_START($1)
|
|
|
|
for test in GNU/changecom changecom; do
|
|
echo "Running test $test"
|
|
case "$test" in
|
|
GNU/*)
|
|
M4="m4 -g"
|
|
GNU="g"
|
|
test=`basename $test`
|
|
;;
|
|
*)
|
|
M4="m4"
|
|
GNU=""
|
|
;;
|
|
esac
|
|
case "$test" in
|
|
changecom)
|
|
$M4 < regress.$test.in | diff -u regress.$GNU$test.out -
|
|
;;
|
|
esac
|
|
if [ $? -eq 0 ]; then
|
|
echo "PASS: Test $test detected no regression, output matches."
|
|
else
|
|
STATUS=$?
|
|
echo "FAIL: Test $test failed: regression detected. See above."
|
|
fi
|
|
done
|
|
|
|
REGRESSION_END()
|