aboutsummaryrefslogtreecommitdiff
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.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/regression/usr.bin/uudecode/regress.sh b/tools/regression/usr.bin/uudecode/regress.sh
index 36e224a9d185..eb8874f1d2db 100644
--- a/tools/regression/usr.bin/uudecode/regress.sh
+++ b/tools/regression/usr.bin/uudecode/regress.sh
@@ -7,13 +7,17 @@ if [ -z "$TESTDIR" ]; then
fi
cd $TESTDIR
+STATUS=0
+
for test in traditional base64; do
echo "Running test $test"
uudecode -p < regress.$test.in | cmp regress.out -
if [ $? -eq 0 ]; then
echo "Test $test detected no regression, output matches."
else
+ STATUS=$?
echo "Test $test failed: regression detected. See above."
- exit 1
fi
done
+
+exit $STATUS