regress.sh revision 95542
11590Srgrimes# $FreeBSD: head/tools/regression/usr.bin/uuencode/regress.sh 95542 2002-04-27 03:11:33Z jmallett $ 21590Srgrimes 31590Srgrimes# Go into the regression test directory, handed to us by make(1) 413840SwoschTESTDIR=$1 514002Swoschif [ -z "$TESTDIR" ]; then 613684Swosch TESTDIR=. 713684Swoschfi 81590Srgrimescd $TESTDIR 91590Srgrimes 1013684SwoschSTATUS=0 1113684Swosch 1214147Swosch# To make sure we end up with matching headers. 1314147Swoschumask 022 1414147Swosch 1514147Swoschfor test in traditional base64; do 1614147Swosch echo "Running test $test" 171590Srgrimes case "$test" in 181590Srgrimes 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 32 33exit $STATUS 34