X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Ftwo-jobs-test;h=ef88177e9add359de3168f0eee6656eeba4d119c;hb=0dd529f9eb4311065a0b4157f06eafa8f30e240e;hp=374d988337065dcc89de79318d18363e9187026a;hpb=7f12b27408ab878d9dd8223aca910c413731301a;p=bacula%2Fbacula diff --git a/regress/tests/two-jobs-test b/regress/tests/two-jobs-test index 374d988337..ef88177e9a 100755 --- a/regress/tests/two-jobs-test +++ b/regress/tests/two-jobs-test @@ -3,61 +3,76 @@ # Run a simple backup of the Bacula build directory using the compressed option # then backup a second time and finally restore it # +TestName="two-jobs-test" +JobName=Two-Jobs +. scripts/functions + cwd=`pwd` +scripts/cleanup scripts/copy-test-confs -rm -rf /tmp/TestVolume001 /tmp/bacula-restores -echo "${cwd}/build" >/tmp/file-list -bin/bacula stop 2>&1 >/dev/null -bin/drop_sqlite_tables -bin/make_sqlite_tables +echo "${cwd}/build" >${cwd}/tmp/file-list -echo " " -echo " " -echo " === Starting two-jobs-test ===" -echo " " +change_jobname CompressedTest $JobName +start_test -bin/bacula start -bin/console -c bin/console.conf <tmp/bconcmds <tmp/bconcmds <>test.out - echo " " -else - echo " ===== two-jobs-test Bacula source OK ===== " - echo " ===== two-jobs-test OK ===== " >>test.out - rm -rf /tmp/bacula-restores /tmp/TestVolume001 -fi + +run_bconsole +check_for_zombie_jobs storage=File +stop_bacula + +check_two_logs +check_restore_diff +end_test