freebsd-dev/tools/regression/usr.bin/file2c/regress.sh
Juli Mallett 624abf8519 Prefix tests with PASS and FAIL, to make grepping easier, and note this in
the README.

This affects only the base-system regression tests, of course.
2002-04-27 02:26:23 +00:00

17 lines
380 B
Bash

# $FreeBSD$
# Go into the regression test directory, handed to us by make(1)
TESTDIR=$1
if [ -z "$TESTDIR" ]; then
TESTDIR=.
fi
cd $TESTDIR
file2c 'const char data[] = {' ', 0};' < regress.in | diff -u regress.out -
if [ $? -eq 0 ]; then
echo "PASS: Test detected no regression, output matches."
else
echo "FAIL: Test failed: regression detected. See above."
exit 1
fi