summaryrefslogtreecommitdiffstats
path: root/tools/regression/usr.bin/file2c/regress.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/regression/usr.bin/file2c/regress.sh')
-rw-r--r--tools/regression/usr.bin/file2c/regress.sh17
1 files changed, 4 insertions, 13 deletions
diff --git a/tools/regression/usr.bin/file2c/regress.sh b/tools/regression/usr.bin/file2c/regress.sh
index b716788..7558529 100644
--- a/tools/regression/usr.bin/file2c/regress.sh
+++ b/tools/regression/usr.bin/file2c/regress.sh
@@ -1,16 +1,7 @@
# $FreeBSD$
-# Go into the regression test directory, handed to us by make(1)
-TESTDIR=$1
-if [ -z "$TESTDIR" ]; then
- TESTDIR=.
-fi
-cd $TESTDIR
+REGRESSION_START($1)
-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
+REGRESSION_TEST_ONE(`file2c "const char data[] = {" ", 0};" < regress.in')
+
+REGRESSION_END()
OpenPOWER on IntegriCloud