X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fbackup-bacula-test;h=8cf65cf560e0a131a9319987aac548da629da633;hb=70f4723a1094c8c55d7a501ff52c1ff51a3542bf;hp=ee60c4b4b69b69501f7238f655372319939ffcc0;hpb=00b2e2f4e4580254fdcd9a4f746faedd2c955386;p=bacula%2Fbacula diff --git a/regress/tests/backup-bacula-test b/regress/tests/backup-bacula-test index ee60c4b4b6..8cf65cf560 100755 --- a/regress/tests/backup-bacula-test +++ b/regress/tests/backup-bacula-test @@ -6,20 +6,28 @@ TestName="backup-bacula-test" JobName=backup . scripts/functions -set_debug 0 scripts/cleanup scripts/copy-confs +# +# Zap out any schedule in default conf file so that +# it doesn't start during our test +# +outf="$tmp/sed_tmp" +echo "s% Schedule =%# Schedule =%g" >${outf} +cp $scripts/bacula-dir.conf $tmp/1 +sed -f ${outf} $tmp/1 >$scripts/bacula-dir.conf + change_jobname Client1 $JobName start_test -cat <tmp/bconcmds +cat <$tmp/bconcmds @output /dev/null messages -@$out tmp/log1.out -label volume=TestVolume001 -@#setdebug level=100 storage=File +@$out $tmp/log1.out +setdebug level=100 storage=File +label volume=TestVolume001 storage=File pool=Default run job=$JobName yes status storage=File status storage=File @@ -44,8 +52,8 @@ messages @# @# now do a restore @# -@$out tmp/log2.out -restore where=${cwd}/tmp/bacula-restores select all done +@$out $tmp/log2.out +restore where=$tmp/bacula-restores select all done yes wait messages @@ -54,7 +62,38 @@ quit END_OF_DATA run_bacula -check_for_zombie_jobs storate=File +check_for_zombie_jobs storage=File +stop_bacula + +cat <$tmp/bconcmds +@output /dev/null +messages +@$out $tmp/log1.out +@#setdebug level=100 storage=File +run job=$JobName yes +wait +messages +@# +@# now do a restore +@# +@$out $tmp/log2.out +restore where=$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