X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Fnightly-all;h=28fedae9452b370c80666ee95736c3f86e6b5a72;hb=5de97c8320401f42d48574a2e31630facc1aceb4;hp=00e1059339fc6de67617f2aaa07a18015c52c727;hpb=69bd9bc26f1e3af8b3916cd069df34d1bff007f0;p=bacula%2Fbacula diff --git a/regress/nightly-all b/regress/nightly-all index 00e1059339..28fedae945 100755 --- a/regress/nightly-all +++ b/regress/nightly-all @@ -1,15 +1,34 @@ #!/bin/sh +# +# 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 -save_debug=${REGRESS_DEBUG} +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 "all-non-root.*" -if [ $? != 0 ] ; then +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 -fi -REGRESS_DEBUG=${save_debug} + rtn=$? + i=`expr $i + 1` +done +echo "End nightly-all `date`"