533e28dbe1
This way the entire regression test is looked at as a pass/fail, not just one sub-test.
24 lines
464 B
Bash
24 lines
464 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 traditional base64; do
|
|
echo "Running test $test"
|
|
uudecode -p < regress.$test.in | cmp regress.out -
|
|
if [ $? -eq 0 ]; then
|
|
echo "Test $test detected no regression, output matches."
|
|
else
|
|
STATUS=$?
|
|
echo "Test $test failed: regression detected. See above."
|
|
fi
|
|
done
|
|
|
|
exit $STATUS
|