regress.sh revision 95145
1# $FreeBSD: head/tools/regression/usr.bin/file2c/regress.sh 95145 2002-04-20 19:01: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 10file2c 'const char data[] = {' ', 0};' < regress.in | diff -u regress.out - 11if [ $? -eq 0 ]; then 12 echo "Test detected no regression, output matches." 13else 14 echo "Test failed: regression detected. See above." 15 exit 1 16fi 17