#!/bin/sh
+#
+# Copyright (C) 2000-2015 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
+
#
# Script to run a regression test with a time limit (in seconds)
# this allows the script to be killed if say the SD crashes
#
if [ -f bin/timelimit ] ; then
WARNTIME=900 KILLTIME=50 bin/timelimit $*
- if [ $? .ne. 0 ] ; then
+ if [ $? != 0 ] ; then
echo " "
- echo "=== Test $* timed out ==="
+ echo "=== Test $* failed ==="
echo " "
echo " " >>test.out
- echo "=== Test $* timed out ===" >>test.out
+ echo "=== Test $* failed ===" >>test.out
echo " " >>test.out
+ exit 1
fi
else
nice $*
fi
+#echo " "
+#echo " "
+#grep -e" \!\!\!\!" -e"===\ Test" test.out