X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fbackup-bacula-tape;h=4a80a8f201a88b77e214f9ef170dbf5d198711bb;hb=5dd06f639b5e883410a3af50727706a3d16e4028;hp=ae7e17d59e9f8072114788017a299ba241c6f80e;hpb=5b4f40e5baaa8cbba795741f60488e464fddea1e;p=bacula%2Fbacula diff --git a/regress/tests/backup-bacula-tape b/regress/tests/backup-bacula-tape index ae7e17d59e..4a80a8f201 100755 --- a/regress/tests/backup-bacula-tape +++ b/regress/tests/backup-bacula-tape @@ -6,31 +6,33 @@ # We also use the purge and the relabel commands as # well as a pile of status storage commands. # -TestName="backup-bacula-tape" +TestName="backup-bacula-1t1d-tape" JobName=backuptape . scripts/functions -set_debug 0 + +require_tape_drive scripts/copy-tape-confs scripts/cleanup-tape -echo "${cwd}/build" >/tmp/file-list +echo "${cwd}/build" >${cwd}/tmp/file-list -change_job $JobName +change_jobname NightlySave $JobName start_test # Write out bconsole commands -cat <tmp/bconcmds +cat <${cwd}/tmp/bconcmds @output /dev/null messages -@$out tmp/log1.out +@$out ${cwd}/tmp/log1.out +@#setdebug level=200 storage=DDS-4 label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default purge volume=TestVolume001 relabel pool=Default storage=DDS-4 oldVolume=TestVolume001 volume=TestVolume002 slot=0 purge volume=TestVolume002 relabel pool=Default storage=DDS-4 oldVolume=TestVolume002 volume=TestVolume001 slot=0 -run job=NightlySave yes +run job=$JobName yes status storage=DDS-4 status storage=DDS-4 status storage=DDS-4 @@ -66,7 +68,7 @@ messages @# @# now do a restore @# -@$out tmp/log2.out +@$out ${cwd}/tmp/log2.out restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done yes wait @@ -84,19 +86,19 @@ stop_bacula touch ${cwd}/build/src/dird/*.c echo "test test" > ${cwd}/build/src/dird/xxx -cat <tmp/bconcmds +cat <${cwd}/tmp/bconcmds @$out /dev/null messages -@$out tmp/log1.out +@$out ${cwd}/tmp/log1.out list volumes -run job=NightlySave yes +run job=$JobName yes wait list volumes messages @# @# now do a second restore @# -@$out tmp/log2.out +@$out ${cwd}/tmp/log2.out list volumes restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done yes