X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Fnightly-all;h=7f817952a8e959fdef9db59f565544e6dfa02f74;hb=d19a08817542ab4ef7f3a6ec12b9cd13c3a6d6e5;hp=b4395a3a2ba8e960b39715d9a661f3c5f055c6e7;hpb=318d242ecc2457a70462eefa57f32c76e443ecfb;p=bacula%2Fbacula diff --git a/regress/nightly-all b/regress/nightly-all index b4395a3a2b..7f817952a8 100755 --- a/regress/nightly-all +++ b/regress/nightly-all @@ -1,2 +1,30 @@ #!/bin/sh -ctest -D Nightly -R all-non-root +# +# 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 +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`"