]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/vol-duration-2t1da-tape
Add more debug
[bacula/bacula] / regress / tests / vol-duration-2t1da-tape
1 #!/bin/sh
2 #
3 # Run a simple backup of the Bacula build directory but 
4 #   create two volumes and set a short Volume duration on
5 #   the first so that it will be used, recycled.  Then
6 #   Bug #1032 indicates it will get a changer error when
7 #   loading the second volume. However, we cannot reproduce
8 #   this problem.
9 #
10 # This test uses an autochanger
11 #
12 TestName="vol-duration-2t1da-tape"
13 JobName=VolDuration
14 . scripts/functions
15
16 skip_if_no_autochanger
17
18 scripts/cleanup
19 scripts/copy-2tape-confs
20 scripts/prepare-two-tapes
21
22 echo "${cwd}/build" >${cwd}/tmp/file-list
23
24 change_jobname NightlySave $JobName
25 start_test
26
27 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
28 @output /dev/null
29 messages
30 @$out ${cwd}/tmp/log1.out
31 setdebug level=100 storage=DDS-4
32 label storage=DDS-4 volume=TestVolume001 slot=1 pool=Default drive=0
33 label storage=DDS-4 volume=TestVolume002 slot=2 Pool=Default drive=0
34 update Volume=TestVolume001 VolUse=30
35 update Volume=TestVolume002 VolUse=30
36 run job=$JobName level=Full Storage=DDS-4 yes
37 @sleep 31
38 run job=$JobName level=Full Storage=DDS-4 yes
39 wait
40 messages
41 list volumes
42 @# 
43 @# now do a restore
44 @#
45 @$out ${cwd}/tmp/log2.out
46 restore where=${cwd}/tmp/bacula-restores select storage=DDS-4
47 unmark *
48 mark *
49 done
50 yes
51 wait
52 messages
53 @output
54 quit
55 END_OF_DATA
56
57 run_bacula
58 check_for_zombie_jobs storage=DDS-4
59 stop_bacula
60
61 check_two_logs
62 check_restore_diff
63 end_test