3 # Run four jobs at the same time
5 TestName="four-concurrent-jobs-tape"
6 JobName=FourConcurrentJobs
12 scripts/copy-tape-confs
14 echo "${cwd}/build" >${cwd}/tmp/file-list
16 change_jobname $JobName
19 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
22 @$out ${cwd}/tmp/log1.out
23 label storage=tape volume=TestVolume001 slot=0 pool=Default
24 run job=$JobName level=Full Storage=tape yes
25 run job=$JobName level=Full Storage=tape yes
26 run job=$JobName level=Full Storage=tape yes
27 run job=$JobName level=Full Storage=tape yes
36 @$out ${cwd}/tmp/jobmedia.out
39 select JobId,MediaId,StartFile,StartBlock,EndFile,EndBlock from JobMedia;
44 @$out ${cwd}/tmp/log2.out
45 restore where=${cwd}/tmp/bacula-restores select storage=tape
56 check_for_zombie_jobs storage=tape