2002-04-20 17:20:21 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
# Go into the regression test directory, handed to us by make(1)
|
|
|
|
TESTDIR=$1
|
|
|
|
if [ -z "$TESTDIR" ]; then
|
|
|
|
TESTDIR=.
|
|
|
|
fi
|
|
|
|
cd $TESTDIR
|
|
|
|
|
2002-04-21 00:18:29 +00:00
|
|
|
STATUS=0
|
|
|
|
|
2002-04-27 03:11:33 +00:00
|
|
|
# To make sure we end up with matching headers.
|
|
|
|
umask 022
|
2002-04-20 18:44:54 +00:00
|
|
|
|
2002-04-20 17:20:21 +00:00
|
|
|
for test in traditional base64; do
|
|
|
|
echo "Running test $test"
|
|
|
|
case "$test" in
|
|
|
|
traditional)
|
2002-04-27 03:11:33 +00:00
|
|
|
uuencode regress.in < regress.in | diff -u regress.$test.out -
|
2002-04-20 17:20:21 +00:00
|
|
|
;;
|
|
|
|
base64)
|
2002-04-27 03:11:33 +00:00
|
|
|
uuencode -m regress.in < regress.in | diff -u regress.$test.out -
|
2002-04-20 17:20:21 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
if [ $? -eq 0 ]; then
|
2002-04-27 02:26:23 +00:00
|
|
|
echo "PASS: Test $test detected no regression, output matches."
|
2002-04-20 17:20:21 +00:00
|
|
|
else
|
2002-04-21 00:18:29 +00:00
|
|
|
STATUS=$?
|
2002-04-27 02:26:23 +00:00
|
|
|
echo "FAIL: Test $test failed: regression detected. See above."
|
2002-04-20 17:20:21 +00:00
|
|
|
fi
|
|
|
|
done
|
2002-04-21 00:18:29 +00:00
|
|
|
|
|
|
|
exit $STATUS
|