X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Ftwo-jobs-test;h=9c20ca02c00b942c87120a2150f121046d426984;hb=4a5aa1e88a23186262ffbf4abecb6d5db35ed03c;hp=df56983ba4ced99babb56c2898a6afcbee0badf1;hpb=db4ecb408aa5688a7e5dc3007a6503435fa9f777;p=bacula%2Fbacula diff --git a/regress/tests/two-jobs-test b/regress/tests/two-jobs-test index df56983ba4..9c20ca02c0 100755 --- a/regress/tests/two-jobs-test +++ b/regress/tests/two-jobs-test @@ -3,61 +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/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 " " -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 -fi -rm -rf /tmp/bacula-restores + +run_bconsole +check_for_zombie_jobs storage=File +stop_bacula + +check_two_logs +check_restore_diff +end_test