X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fcompressed-test;h=c373a5878529ba513c071229821ebc594a132812;hb=a752597b2a79ba0f2dfb0ec6b6da8403464e092b;hp=13176050da8d21d1608064c6edc2f328409ea937;hpb=4169fb325368e46922286d884ddd529ec45c21e9;p=bacula%2Fbacula diff --git a/regress/tests/compressed-test b/regress/tests/compressed-test index 13176050da..c373a58785 100755 --- a/regress/tests/compressed-test +++ b/regress/tests/compressed-test @@ -10,17 +10,18 @@ echo "${cwd}/build" >/tmp/file-list echo " " echo " " -echo " === Starting compressed-test ===" -echo " === Starting compressed-test ===" >>working/log +echo " === Starting compressed-test at `date +%R:%S` ===" +echo " === Starting compressed-test at `date +%R:%S` ===" >>working/log echo " " bin/bacula start 2>&1 >/dev/null -bin/bconsole -c bin/bconsole.conf <&1 >/dev/null +@tee /dev/null status all status all messages -@output tmp/log1.out +@tee tmp/log1.out label storage=File volume=TestVolume001 run job=CompressedTest storage=File yes wait @@ -28,7 +29,7 @@ messages @# @# now do a restore @# -@output tmp/log2.out +@tee tmp/log2.out restore where=${cwd}/tmp/bacula-restores select storage=File unmark * mark * @@ -36,14 +37,14 @@ done yes wait messages -@output +@tee quit END_OF_DATA scripts/check_for_zombie_jobs storage=File bin/bacula stop 2>&1 >/dev/null -grep "^Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null +grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null bstat=$? -grep "^Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null +grep "^ Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null rstat=$? diff -r build tmp/bacula-restores${cwd}/build 2>&1 >/dev/null if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then @@ -51,6 +52,13 @@ if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then echo " " echo " !!!!! compressed-test Bacula source failed!!! !!!!! " echo " !!!!! compressed-test failed!!! !!!!! " >>test.out + if [ $bstat != 0 -o $rstat != 0 ] ; then + echo " !!!!! Bad Job termination status !!!!! " + echo " !!!!! Bad Job termination status !!!!! " >>test.out + else + echo " !!!!! Restored files differ !!!!! " + echo " !!!!! Restored files differ !!!!! " >>test.out + fi echo " " else echo " ===== compressed-test Bacula source OK ===== "