]> git.sur5r.net Git - bacula/bacula/blob - regress/run
Backuport from BEE
[bacula/bacula] / regress / run
1 #!/bin/sh
2 #
3 # Script to run a regression test with a time limit (in seconds)
4 #  this allows the script to be killed if say the SD crashes
5 #  due to an ASSERT.  Otherwise the script will hang for
6 #  a very long time, perhaps forever.
7 # Of course, this implies that all tests must terminate normally
8 #  within the timeout period (900 seconds).
9 #
10 if [ -f bin/timelimit ] ; then
11    WARNTIME=900 KILLTIME=50 bin/timelimit $*
12    if [ $? != 0 ] ; then
13       echo " "
14       echo "=== Test $* timed out ==="
15       echo " "
16       echo " " >>test.out
17       echo "=== Test $* timed out ===" >>test.out
18       echo " " >>test.out
19    fi
20 else
21    nice $*
22 fi
23 #echo " "
24 #echo " "
25 #grep -e" \!\!\!\!" -e"===\ Test" test.out