3 # Run a job with small Maximum Volume Bytes. It should
4 # create a lot of volumes. The test stresses auto-creation of
5 # Volumes and restores from a lot of Volumes. Note, it creates
6 # writes and then reads something like 110 Volumes (will vary
7 # depending on the size of the Bacula source).
9 TestName="maxbytes-test"
14 scripts/copy-test-confs
15 echo "${cwd}/build" >${cwd}/tmp/file-list
17 cp -f ${cwd}/bin/bacula-dir.conf ${cwd}/tmp/1
18 sed "s%# Maximum Volume Bytes% Maximum Volume Bytes%" ${cwd}/tmp/1 >${cwd}/bin/bacula-dir.conf
19 cp -f ${cwd}/bin/bacula-dir.conf ${cwd}/tmp/1
20 sed "s%# Simple Label Format% Label Format%" ${cwd}/tmp/1 >${cwd}/bin/bacula-dir.conf
22 change_jobname NightlySave $JobName
25 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
28 @$out ${cwd}/tmp/log1.out
29 @#setdebug level=100 Storage=File1
30 run job=$JobName level=Full Storage=File1 yes
37 @$out ${cwd}/tmp/log2.out
38 restore where=${cwd}/tmp/bacula-restores select storage=File1
51 check_for_zombie_jobs storage=File1