From: Kern Sibbald Date: Fri, 4 Jan 2008 16:14:19 +0000 (+0000) Subject: Update X-Git-Tag: Release-7.0.0~5196 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6f0ba73651a087e347ffbae712a1d7295ab3a2b3;p=bacula%2Fbacula Update git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6206 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/tests/two-pool-2t1da-tape b/regress/tests/two-pool-2t1da-tape new file mode 100755 index 0000000000..efbd37bcad --- /dev/null +++ b/regress/tests/two-pool-2t1da-tape @@ -0,0 +1,80 @@ +#!/bin/sh +# +# This is Arno's test. It uses two pools, two tapes, and +# an autochanger. Note, the Director has three Pools in its +# conf: Default, Full, and Inc. Default is used in the +# NightlySave job by default. What is backed up is what +# is in ${cwd}/tmp/file-list, which is by default the Bacula +# source code (i.e. the build directory). +# +TestName="two-pool-2t1da-tape" +JobName=twopooltape +. scripts/functions + +if test x${AUTOCHANGER} = x/dev/null ; then + echo "two-pool-tape test skipped. No autochanger." + exit +fi + +scripts/cleanup +scripts/copy-2tape-confs +echo "Prepare two tapes" +scripts/prepare-two-tapes +echo "Done prepare two tapes" + +# Make a relatively large backup set 5 x source code directory +echo "${cwd}/build" >${cwd}/tmp/file-list +echo "${cwd}/build" >>${cwd}/tmp/file-list +echo "${cwd}/build" >>${cwd}/tmp/file-list +echo "${cwd}/build" >>${cwd}/tmp/file-list +echo "${cwd}/build" >>${cwd}/tmp/file-list + +start_test + +# Write out bconsole commands to a file +cat <tmp/bconcmds +@output /dev/null +messages +@$out tmp/log1.out +label storage=DDS-4 volume=TestVolume001 slot=1 pool=Full drive=0 +label storage=DDS-4 volume=TestVolume002 slot=2 pool=Default drive=0 +list volumes +@# Start job with Client run before and sleep +run job=NightlySave1 level=Full pool=Default yes +run job=NightlySave1 level=Full pool=Default yes +run job=NightlySave1 level=Full pool=Default yes +@# wait between starting jobs +@sleep 60 +@#setdebug level=100 storage=DDS-4 +run job=NightlySave2 level=Full pool=Full yes +run job=NightlySave2 level=Full pool=Full yes +run job=NightlySave2 level=Full pool=Full yes +@sleep 10 +messages +@sleep 10 +messages +@sleep 10 +status storage=DDS-4 +messages +wait +list volumes +messages +@# +@# now do a restore +@# +@$out tmp/log2.out +restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done +yes +wait +messages +@$out +quit +END_OF_DATA + +run_bacula +check_for_zombie_jobs storage=DDS-4 +stop_bacula + +check_two_logs +check_restore_diff +end_test diff --git a/regress/tests/two-pool-tape b/regress/tests/two-pool-tape deleted file mode 100755 index efbd37bcad..0000000000 --- a/regress/tests/two-pool-tape +++ /dev/null @@ -1,80 +0,0 @@ -#!/bin/sh -# -# This is Arno's test. It uses two pools, two tapes, and -# an autochanger. Note, the Director has three Pools in its -# conf: Default, Full, and Inc. Default is used in the -# NightlySave job by default. What is backed up is what -# is in ${cwd}/tmp/file-list, which is by default the Bacula -# source code (i.e. the build directory). -# -TestName="two-pool-2t1da-tape" -JobName=twopooltape -. scripts/functions - -if test x${AUTOCHANGER} = x/dev/null ; then - echo "two-pool-tape test skipped. No autochanger." - exit -fi - -scripts/cleanup -scripts/copy-2tape-confs -echo "Prepare two tapes" -scripts/prepare-two-tapes -echo "Done prepare two tapes" - -# Make a relatively large backup set 5 x source code directory -echo "${cwd}/build" >${cwd}/tmp/file-list -echo "${cwd}/build" >>${cwd}/tmp/file-list -echo "${cwd}/build" >>${cwd}/tmp/file-list -echo "${cwd}/build" >>${cwd}/tmp/file-list -echo "${cwd}/build" >>${cwd}/tmp/file-list - -start_test - -# Write out bconsole commands to a file -cat <tmp/bconcmds -@output /dev/null -messages -@$out tmp/log1.out -label storage=DDS-4 volume=TestVolume001 slot=1 pool=Full drive=0 -label storage=DDS-4 volume=TestVolume002 slot=2 pool=Default drive=0 -list volumes -@# Start job with Client run before and sleep -run job=NightlySave1 level=Full pool=Default yes -run job=NightlySave1 level=Full pool=Default yes -run job=NightlySave1 level=Full pool=Default yes -@# wait between starting jobs -@sleep 60 -@#setdebug level=100 storage=DDS-4 -run job=NightlySave2 level=Full pool=Full yes -run job=NightlySave2 level=Full pool=Full yes -run job=NightlySave2 level=Full pool=Full yes -@sleep 10 -messages -@sleep 10 -messages -@sleep 10 -status storage=DDS-4 -messages -wait -list volumes -messages -@# -@# now do a restore -@# -@$out tmp/log2.out -restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done -yes -wait -messages -@$out -quit -END_OF_DATA - -run_bacula -check_for_zombie_jobs storage=DDS-4 -stop_bacula - -check_two_logs -check_restore_diff -end_test