summaryrefslogtreecommitdiffstats
path: root/tools/regression/usr.bin/uudecode/regress.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/regression/usr.bin/uudecode/regress.sh')
-rw-r--r--tools/regression/usr.bin/uudecode/regress.sh23
1 files changed, 4 insertions, 19 deletions
diff --git a/tools/regression/usr.bin/uudecode/regress.sh b/tools/regression/usr.bin/uudecode/regress.sh
index a12066d..f4f745a 100644
--- a/tools/regression/usr.bin/uudecode/regress.sh
+++ b/tools/regression/usr.bin/uudecode/regress.sh
@@ -1,23 +1,8 @@
# $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)
-STATUS=0
+REGRESSION_TEST_ONE(`uudecode -p < regress.traditional.in', `traditional')
+REGRESSION_TEST_ONE(`uudecode -p < regress.base64.in', `base64')
-for test in traditional base64; do
- echo "Running test $test"
- uudecode -p < regress.$test.in | cmp regress.out -
- if [ $? -eq 0 ]; then
- echo "PASS: Test $test detected no regression, output matches."
- else
- STATUS=$?
- echo "FAIL: Test $test failed: regression detected. See above."
- fi
-done
-
-exit $STATUS
+REGRESSION_END()
OpenPOWER on IntegriCloud