3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Run four jobs at the same time, with two Volumes.
9 # Set max Vol bytes of first volume
10 # to less than total backup to force Bacula to use the second
13 TestName="four-concurrent-jobs-test"
14 JobName=Four-concurrent-jobs
18 scripts/copy-test-confs
19 echo "${cwd}/build" >${cwd}/tmp/file-list
21 change_jobname NightlySave $JobName
24 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
27 @$out ${cwd}/tmp/log1.out
32 update Volume=TestVolume001 MaxVolBytes=100000000
35 setdebug level=51 Storage=File1
38 llist volume=TestVolume001
39 llist volume=TestVolume002
42 run job=$JobName level=Full Storage=File1
45 llist volume=TestVolume001
46 llist volume=TestVolume002
49 run job=$JobName level=Full Storage=File1
52 llist volume=TestVolume001
53 llist volume=TestVolume002
56 run job=$JobName level=Full Storage=File1
59 llist volume=TestVolume001
60 llist volume=TestVolume002
64 run job=$JobName level=Full Storage=File1
76 llist volume=TestVolume001
77 llist volume=TestVolume002
92 @$out ${cwd}/tmp/jobmedia.out
95 select JobId,MediaId,StartFile,StartBlock,EndFile,EndBlock from JobMedia;
98 @$out ${cwd}/tmp/log2.out
101 setdebug level=100 Storage=File1
102 restore where=${cwd}/tmp/bacula-restores select storage=File1
108 run job=$JobName level=Full Storage=File1 yes
116 check_for_zombie_jobs storage=File1