3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Run a simple backup of the Bacula build directory but
9 # create two volumes and set a short Volume duration on
10 # the first so that it will be used, recycled. Then
11 # Bug #1032 indicates it will get a changer error when
12 # loading the second volume. However, we cannot reproduce
15 # This test uses an autochanger
17 TestName="vol-duration-changer"
18 JobName=VolDurationChanger
25 scripts/copy-2tape-confs
26 scripts/prepare-two-tapes
28 echo "${cwd}/build" >${cwd}/tmp/file-list
30 change_jobname NightlySave $JobName
33 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
36 @$out ${cwd}/tmp/log1.out
37 setdebug level=100 storage=tape
38 label storage=tape volume=TestVolume001 slot=$SLOT1 pool=Default drive=$DRIVE1
39 label storage=tape volume=TestVolume002 slot=$SLOT2 Pool=Default drive=$DRIVE1
40 update Volume=TestVolume001 VolUse=30
41 update Volume=TestVolume002 VolUse=30
42 run job=$JobName level=Full Storage=tape yes
44 run job=$JobName level=Full Storage=tape yes
51 @$out ${cwd}/tmp/log2.out
52 restore where=${cwd}/tmp/bacula-restores select storage=tape
63 check_for_zombie_jobs storage=tape