]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/verify-vol-tape
regress: add function to create many dirs
[bacula/bacula] / regress / tests / verify-vol-tape
index 9927adee7b36e4b33db375065af384246f9cf692..91ee840b3bb7f998adb46b42f90e7811224a9c28 100755 (executable)
@@ -7,7 +7,10 @@ TestName="verify-vol-tape"
 JobName=VerifyVol
 . scripts/functions
 
-copy_tape_confs
+require_tape_drive
+
+scripts/copy-tape-confs
+scripts/cleanup-tape
 
 echo "${cwd}/build" >${cwd}/tmp/file-list
 
@@ -18,8 +21,8 @@ cat <<END_OF_DATA >tmp/bconcmds
 @$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
@@ -31,14 +34,13 @@ run job=VerifyTape pool=Default
 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