TestName="verify-vol-tape"
JobName=VerifyVol
. scripts/functions
-set_debug 1
-copy_tape_confs
+require_tape_drive
-echo "${cwd}/build" >/tmp/file-list
+scripts/copy-tape-confs
+scripts/cleanup-tape
+
+echo "${cwd}/build" >${cwd}/tmp/file-list
change_jobname NightlySave $JobName
start_test
@$out /dev/null
messages
@$out tmp/log1.out
-setdebug level=1 storage=DDS-4 sd
-label storage=DDS-4 volume=TestVolume001 pool=Default
+setdebug level=1 storage=tape sd
+label storage=tape volume=TestVolume001 pool=Default
run job=$JobName yes
wait
messages
yes
wait
messages
-@$out
quit
END_OF_DATA
run_bacula
sleep 2
-check_for_zombie_jobs storage=DDS-4
+check_for_zombie_jobs storage=tape
stop_bacula
grep "^ Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null