]> git.sur5r.net Git - bacula/bacula/blob - regress/run
Implement a timeout on regression tests of 15 minutes
[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=5 bin/timelimit $*
12 else
13    nice $*
14 fi