regress.sh revision 95138
1# $FreeBSD: head/tools/regression/usr.bin/uuencode/regress.sh 95138 2002-04-20 17:20:21Z jmallett $ 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 9 10for test in traditional base64; do 11 echo "Running test $test" 12 case "$test" in 13 traditional) 14 uuencode regress.in regress.in | diff -u regress.$test.out - 15 ;; 16 base64) 17 uuencode -m regress.in regress.in | diff -u regress.$test.out - 18 ;; 19 esac 20 if [ $? -eq 0 ]; then 21 echo "Test $test detected no regression, output matches." 22 else 23 echo "Test $test failed: regression detected. See above." 24 exit 1 25 fi 26done 27