]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/memory-bug-tape
Verify if the Exclude Dir Containing directive does his job
[bacula/bacula] / regress / tests / memory-bug-tape
index 8a85a43d20969ca0f195ed909d2bdb7712cd204e..680061e65946fb8041dede452af0733806df6fe2 100755 (executable)
@@ -8,22 +8,23 @@
 TestName="four-concurrent-jobs-tape"
 JobName=FourConcurrentJobs
 . scripts/functions
-set_debug 0
+
+require_tape_drive
 
 scripts/cleanup-tape
 scripts/copy-tape-confs
 
-echo "${cwd}/build" >/tmp/file-list
+echo "${cwd}/build" >${cwd}/tmp/file-list
 
 change_jobname $JobName
 start_test
 
-cat <<END_OF_DATA >tmp/bconcmds
-@output /dev/null
+cat <<END_OF_DATA >${cwd}/tmp/bconcmds
+@$out /dev/null
 messages
-@$out tmp/log1.out
-label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
-run job=$JobName level=Full Storage=DDS-4 yes
+@$out ${cwd}/tmp/log1.out
+label storage=tape volume=TestVolume001 slot=0 pool=Default
+run job=$JobName level=Full Storage=tape yes
 sql
 SELECT * from File;
 SELECT * from File;
@@ -20031,27 +20032,26 @@ SELECT * FROM Media;
 status dir
 @sleep 5
 status dir
-status storage=DDS-4
+status storage=tape
 messages
 wait
 messages
 @# 
 @# now do a restore
 @#
-@$out tmp/log2.out
-restore where=${cwd}/tmp/bacula-restores select storage=DDS-4
+@$out ${cwd}/tmp/log2.out
+restore where=${cwd}/tmp/bacula-restores select storage=tape
 unmark *
 mark *
 done
 yes
 wait
 messages
-@$out
 quit
 END_OF_DATA
 
 run_bacula
-check_for_zombie_jobs storage=DDS-4
+check_for_zombie_jobs storage=tape
 stop_bacula
 
 check_two_logs