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 four Volumes, but set
9 # Maximum Job Volumes = 1 on each of the Volumes. Note,
10 # Volume 2 will probably have two jobs on it. Something to
11 # be fixed in a later version.
13 TestName="maxuseduration-test"
14 JobName=maxuseduration
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
28 label storage=File1 volume=TestVolume001
29 update Volume=TestVolume001
35 llist volume=TestVolume001
36 @#setdebug level=100 Storage=File1
37 run job=$JobName level=Full Storage=File1 yes
39 update Volume=TestVolume001
45 llist volume=TestVolume001
51 check_for_zombie_jobs storage=File1
54 grep "Max configured use duration" ${cwd}/tmp/log1.out
55 if [ $? -eq 0 ] ; then
56 echo "Error: max configured use duration exceeded"