regress.sh revision 95166
1# $FreeBSD: head/tools/regression/usr.bin/uuencode/regress.sh 95166 2002-04-21 00:18:29Z 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 10STATUS=0 11 12# Note that currently the uuencode(1) program provides no facility to 13# include the file mode explicitly based on an argument passed to it, 14# so the regress.in file must be mode 644, or the test will say that, 15# incorrectly, regression has occurred based on the header. 16 17for test in traditional base64; do 18 echo "Running test $test" 19 case "$test" in 20 traditional) 21 uuencode regress.in regress.in | diff -u regress.$test.out - 22 ;; 23 base64) 24 uuencode -m regress.in regress.in | diff -u regress.$test.out - 25 ;; 26 esac 27 if [ $? -eq 0 ]; then 28 echo "Test $test detected no regression, output matches." 29 else 30 STATUS=$? 31 echo "Test $test failed: regression detected. See above." 32 fi 33done 34 35exit $STATUS 36