]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/nightly-all
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / nightly-all
index b4395a3a2ba8e960b39715d9a661f3c5f055c6e7..28fedae9452b370c80666ee95736c3f86e6b5a72 100755 (executable)
@@ -1,2 +1,34 @@
 #!/bin/sh
-ctest -D Nightly -R all-non-root
+#
+# Copyright (C) 2000-2015 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
+
+#
+# run both the disk and the tape based regression tests.
+#
+# Include full output
+LANG=C
+echo "Begin nightly-all `date`"
+REGRESS_DEBUG=1
+export REGRESS_DEBUG
+rm -rf Testing
+rm -f dumps/*
+git pull
+make distclean
+scripts/config_dart
+nice ctest -D Nightly -R "^(disk|tape|changer):"
+rtn=$?
+i=0
+while [ $i -le 5 ]; do
+   if [ $rtn = 0 ] || [ "$rtn" = "8" ] ; then
+      break;
+   fi
+   echo "Submit failed, waiting 5 mins"
+   sleep 300
+   echo "ctest failed re-running Submit"
+   ctest -D NightlySubmit
+   rtn=$?
+   i=`expr $i + 1`
+done
+echo "End nightly-all `date`"