3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Run four jobs at the same time
10 TestName="four-concurrent-jobs-tape"
11 JobName=FourConcurrentJobs
17 scripts/copy-tape-confs
19 echo "${cwd}/build" >${cwd}/tmp/file-list
21 change_jobname $JobName
24 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
27 @$out ${cwd}/tmp/log1.out
28 label storage=tape volume=TestVolume001 slot=0 pool=Default
29 run job=$JobName level=Full Storage=tape yes
30 run job=$JobName level=Full Storage=tape yes
31 run job=$JobName level=Full Storage=tape yes
32 run job=$JobName level=Full Storage=tape yes
41 @$out ${cwd}/tmp/jobmedia.out
44 select JobId,MediaId,StartFile,StartBlock,EndFile,EndBlock from JobMedia;
49 @$out ${cwd}/tmp/log2.out
50 restore where=${cwd}/tmp/bacula-restores select storage=tape
61 check_for_zombie_jobs storage=tape