X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Ftwo-jobs-test;h=b8f8e8f87fc80f7b3175c11acf5e7d894fbe81be;hb=607d301d1a4c30080d46cc380edf2bb3501899d7;hp=b64b781356ea31d5e0fc6a973bfa992a09bedcd6;hpb=4ee91493e376603836ad60ae78da1a0e603c9755;p=bacula%2Fbacula diff --git a/regress/tests/two-jobs-test b/regress/tests/two-jobs-test index b64b781356..b8f8e8f87f 100755 --- a/regress/tests/two-jobs-test +++ b/regress/tests/two-jobs-test @@ -3,55 +3,77 @@ # 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 -bin/drop_sqlite_tables -bin/make_sqlite_tables -bin/bacula start -bin/console -c bin/console.conf <${cwd}/tmp/file-list + +change_jobname CompressedTest $JobName +start_test + +cat >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