X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fbackup-bacula-test;h=0815c38316630e96ac76638ddf4c295e2928a681;hb=414ee85d83197d4f61499f9542455695fa7da276;hp=7f50f4674c686330d574ce41bd794e2cbae32342;hpb=f06b1130f4780403e32002ec081e5d4f020c591e;p=bacula%2Fbacula diff --git a/regress/tests/backup-bacula-test b/regress/tests/backup-bacula-test index 7f50f4674c..0815c38316 100755 --- a/regress/tests/backup-bacula-test +++ b/regress/tests/backup-bacula-test @@ -6,7 +6,6 @@ TestName="backup-bacula-test" JobName=backup . scripts/functions -set_debug 0 scripts/cleanup scripts/copy-confs @@ -14,11 +13,11 @@ scripts/copy-confs change_jobname Client1 $JobName start_test -cat <tmp/bconcmds +cat <${cwd}/tmp/bconcmds @output /dev/null messages -@$out tmp/log1.out -label volume=TestVolume001 +@$out ${cwd}/tmp/log1.out +label volume=TestVolume001 storage=File pool=Default @#setdebug level=100 storage=File run job=$JobName yes status storage=File @@ -44,7 +43,7 @@ messages @# @# now do a restore @# -@$out tmp/log2.out +@$out ${cwd}/tmp/log2.out restore where=${cwd}/tmp/bacula-restores select all done yes wait @@ -57,6 +56,37 @@ run_bacula check_for_zombie_jobs storage=File stop_bacula +cat <${cwd}/tmp/bconcmds +@output /dev/null +messages +@$out ${cwd}/tmp/log1.out +@#setdebug level=100 storage=File +run job=$JobName yes +wait +messages +@# +@# now do a restore +@# +@$out ${cwd}/tmp/log2.out +restore where=${cwd}/tmp/bacula-restores select all done +yes +wait +messages +@$out +quit +END_OF_DATA + +# +# Now do a second backup after making a few changes +# +touch ${cwd}/build/src/dird/*.c +echo "test test" > ${cwd}/build/src/dird/xxx +# + +run_bacula +check_for_zombie_jobs storage=File +stop_bacula + check_two_logs check_restore_diff end_test