summaryrefslogtreecommitdiffstats
path: root/tools/regression/usr.bin/jot/regress.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/regression/usr.bin/jot/regress.sh')
-rw-r--r--tools/regression/usr.bin/jot/regress.sh17
1 files changed, 4 insertions, 13 deletions
diff --git a/tools/regression/usr.bin/jot/regress.sh b/tools/regression/usr.bin/jot/regress.sh
index 91b39a8..5b7d43a 100644
--- a/tools/regression/usr.bin/jot/regress.sh
+++ b/tools/regression/usr.bin/jot/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)
-jot -w '%X' -s ',' 100 1 200 | 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(`jot -w "%X" -s , 100 1 200')
+
+REGRESSION_END()
OpenPOWER on IntegriCloud