624abf8519
the README. This affects only the base-system regression tests, of course.
37 lines
773 B
Bash
37 lines
773 B
Bash
# $FreeBSD$
|
|
|
|
# Go into the regression test directory, handed to us by make(1)
|
|
TESTDIR=$1
|
|
if [ -z "$TESTDIR" ]; then
|
|
TESTDIR=.
|
|
fi
|
|
cd $TESTDIR
|
|
|
|
STATUS=0
|
|
|
|
for test in normal I J L; do
|
|
echo "Running test $test"
|
|
case "$test" in
|
|
normal)
|
|
xargs echo The < regress.in | diff -u regress.$test.out -
|
|
;;
|
|
I)
|
|
xargs -I% echo The % % % %% % % < regress.in | diff -u regress.$test.out -
|
|
;;
|
|
J)
|
|
xargs -J% echo The % again. < regress.in | diff -u regress.$test.out -
|
|
;;
|
|
L)
|
|
xargs -L3 echo < regress.in | diff -u regress.$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
|
|
|
|
exit $STATUS
|