X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Ftwo-jobs-test;h=9c20ca02c00b942c87120a2150f121046d426984;hb=4a5aa1e88a23186262ffbf4abecb6d5db35ed03c;hp=3966eaaba6e99149759cbed45070c7dbf7a1edc2;hpb=bc9bcb7ab6bf9f2f343a920dced350713a0cf4aa;p=bacula%2Fbacula diff --git a/regress/tests/two-jobs-test b/regress/tests/two-jobs-test index 3966eaaba6..9c20ca02c0 100755 --- a/regress/tests/two-jobs-test +++ b/regress/tests/two-jobs-test @@ -3,65 +3,78 @@ # 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 +set_debug 0 + cwd=`pwd` -scripts/copy-test-confs scripts/cleanup +scripts/copy-test-confs echo "${cwd}/build" >/tmp/file-list -bin/bacula stop 2>&1 >/dev/null -bin/drop_sqlite_tables -bin/make_sqlite_tables -echo " " -echo " " -echo " === Starting two-jobs-test ===" -echo " === Starting two-jobs-test ===" >>working/log -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 - scripts/cleanup -fi + +run_bconsole +check_for_zombie_jobs storage=File +stop_bacula + +check_two_logs +check_restore_diff +end_test