3 # Copyright (C) 2000-2017 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
6 # Run four jobs at the same time, with four Volumes, but set
7 # Maximum Job Volumes = 1 on each of the Volumes. Note,
8 # Volume 2 will probably have two jobs on it. Something to
9 # be fixed in a later version.
11 TestName="maxuseduration-test"
12 JobName=maxuseduration
16 scripts/copy-test-confs
17 echo "${cwd}/build" >${cwd}/tmp/file-list
19 change_jobname NightlySave $JobName
22 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
25 @$out ${cwd}/tmp/log1.out
26 label storage=File1 volume=TestVolume001
27 update Volume=TestVolume001
33 llist volume=TestVolume001
34 @#setdebug level=100 Storage=File1
35 run job=$JobName level=Full Storage=File1 yes
37 update Volume=TestVolume001
43 llist volume=TestVolume001
49 check_for_zombie_jobs storage=File1
52 grep "Max configured use duration" ${cwd}/tmp/log1.out
53 if [ $? -eq 0 ] ; then
54 echo "Error: max configured use duration exceeded"