]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/run
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / run
index d48e2623c619ac9a9ade9d870f5495c35df1064f..5c843acbf4c3cc97c132e148c5568e461b4cd6a4 100755 (executable)
@@ -1,3 +1,31 @@
 #!/bin/sh
-bin/bacula start
-bin/bconsole -c bin/bconsole.conf
+#
+# 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
+#  due to an ASSERT.  Otherwise the script will hang for
+#  a very long time, perhaps forever.
+# Of course, this implies that all tests must terminate normally
+#  within the timeout period (900 seconds).
+#
+if [ -f bin/timelimit ] ; then
+   WARNTIME=900 KILLTIME=50 bin/timelimit $*
+   if [ $? != 0 ] ; then
+      echo " "
+      echo "=== Test $* failed ==="
+      echo " "
+      echo " " >>test.out
+      echo "=== Test $* failed ===" >>test.out
+      echo " " >>test.out
+      exit 1
+   fi
+else
+   nice $*
+fi
+#echo " "
+#echo " "
+#grep -e" \!\!\!\!" -e"===\ Test" test.out