]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/backup-win32-tape
regress: add function to create many dirs
[bacula/bacula] / regress / tests / backup-win32-tape
index 2c67ddce85eb4a6b8d7bad4e020a4362e2909f84..f101da942cf8c4d1fedcf4c34b1412a6d55b588c 100755 (executable)
@@ -8,6 +8,8 @@ TestName="backup-win32-tape"
 JobName=backupwintape
 . scripts/functions
 
+require_tape_drive_drive
+
 scripts/cleanup-tape
 scripts/copy-win32-confs
 
@@ -18,13 +20,13 @@ start_test
 
 
 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@output /dev/null
+@$out /dev/null
 messages
 @$out ${cwd}/tmp/log1.out
-label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
+label storage=tape volume=TestVolume001 slot=0 pool=Default
 run job=NightlySave yes
 @sleep 10
-status storage=DDS-4
+status storage=tape
 @sleep 30
 messages
 wait
@@ -33,14 +35,14 @@ messages
 @# now do a restore
 @#
 @$outt ${cwd}/tmp/log2.out
-@#restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
+@#restore where=${cwd}/tmp/bacula-restores select all storage=tape done
 @#yes
 @#wait
 @#messages
 END_OF_DATA
 
 run_bacula
-check_for_zombie_jobs storage=DDS-4
+check_for_zombie_jobs storage=tape
 stop_bacula
 
 check_two_logs