regress.sh revision 95145
195145Sjmallett# $FreeBSD: head/tools/regression/usr.bin/file2c/regress.sh 95145 2002-04-20 19:01:21Z jmallett $ 295145Sjmallett 395145Sjmallett# Go into the regression test directory, handed to us by make(1) 495145SjmallettTESTDIR=$1 595145Sjmallettif [ -z "$TESTDIR" ]; then 695145Sjmallett TESTDIR=. 795145Sjmallettfi 895145Sjmallettcd $TESTDIR 995145Sjmallett 1095145Sjmallettfile2c 'const char data[] = {' ', 0};' < regress.in | diff -u regress.out - 1195145Sjmallettif [ $? -eq 0 ]; then 1295145Sjmallett echo "Test detected no regression, output matches." 1395145Sjmallettelse 1495145Sjmallett echo "Test failed: regression detected. See above." 1595145Sjmallett exit 1 1695145Sjmallettfi 17