regress.sh revision 95138
132988Sbde# $FreeBSD: head/tools/regression/usr.bin/uuencode/regress.sh 95138 2002-04-20 17:20:21Z jmallett $ 26628Ssos 36628Ssos# Go into the regression test directory, handed to us by make(1) 46628SsosTESTDIR=$1 56628Ssosif [ -z "$TESTDIR" ]; then 66628Ssos TESTDIR=. 732988Sbdefi 86628Ssoscd $TESTDIR 96628Ssos 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