3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Script to run a regression test with a time limit (in seconds)
9 # this allows the script to be killed if say the SD crashes
10 # due to an ASSERT. Otherwise the script will hang for
11 # a very long time, perhaps forever.
12 # Of course, this implies that all tests must terminate normally
13 # within the timeout period (900 seconds).
15 if [ -f bin/timelimit ] ; then
16 WARNTIME=900 KILLTIME=50 bin/timelimit $*
19 echo "=== Test $* failed ==="
22 echo "=== Test $* failed ===" >>test.out
31 #grep -e" \!\!\!\!" -e"===\ Test" test.out