]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/nightly-all
regress: add function to create many dirs
[bacula/bacula] / regress / nightly-all
index d2918ca9c3c94e230afd9843bd1a252aa7df6e89..7f817952a8e959fdef9db59f565544e6dfa02f74 100755 (executable)
@@ -3,7 +3,28 @@
 # run both the disk and the tape based regression tests.
 #
 # Include full output
+LANG=C
+echo "Begin nightly-all `date`"
+save_debug=${REGRESS_DEBUG}
 REGRESS_DEBUG=1
 export REGRESS_DEBUG
-scripts/do_sed
-ctest -D Nightly -R "all-non-root.*"
+rm -rf Testing
+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
+REGRESS_DEBUG=${save_debug}
+echo "End nightly-all `date`"