1# $FreeBSD: head/tools/regression/usr.bin/uuencode/regress.sh 95542 2002-04-27 03:11:33Z jmallett $
| 1# $FreeBSD: head/tools/regression/usr.bin/uuencode/regress.sh 98754 2002-06-24 13:52:28Z jmallett $
|
2
| 2
|
3# Go into the regression test directory, handed to us by make(1) 4TESTDIR=$1 5if [ -z "$TESTDIR" ]; then 6 TESTDIR=. 7fi 8cd $TESTDIR
| 3REGRESSION_START($1)
|
9
| 4
|
10STATUS=0 11
| |
12# To make sure we end up with matching headers. 13umask 022 14
| 5# To make sure we end up with matching headers. 6umask 022 7
|
15for test in traditional base64; do 16 echo "Running test $test" 17 case "$test" in 18 traditional) 19 uuencode regress.in < regress.in | diff -u regress.$test.out - 20 ;; 21 base64) 22 uuencode -m regress.in < regress.in | diff -u regress.$test.out - 23 ;; 24 esac 25 if [ $? -eq 0 ]; then 26 echo "PASS: Test $test detected no regression, output matches." 27 else 28 STATUS=$? 29 echo "FAIL: Test $test failed: regression detected. See above." 30 fi 31done
| 8REGRESSION_TEST(`traditional', `uuencode regress.in < regress.in') 9REGRESSION_TEST(`base64', `uuencode -m regress.in < regress.in')
|
32
| 10
|
33exit $STATUS
| 11REGRESSION_END()
|
| |