]> git.sur5r.net Git - bacula/bacula/blob - regress/run
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / run
1 #!/bin/sh
2 #
3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
5 #
6
7 #
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).
14 #
15 if [ -f bin/timelimit ] ; then
16    WARNTIME=900 KILLTIME=50 bin/timelimit $*
17    if [ $? != 0 ] ; then
18       echo " "
19       echo "=== Test $* failed ==="
20       echo " "
21       echo " " >>test.out
22       echo "=== Test $* failed ===" >>test.out
23       echo " " >>test.out
24       exit 1
25    fi
26 else
27    nice $*
28 fi
29 #echo " "
30 #echo " "
31 #grep -e" \!\!\!\!" -e"===\ Test" test.out