]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/four-concurrent-jobs-test
Tweak correct English in debug output of regress tests
[bacula/bacula] / regress / tests / four-concurrent-jobs-test
1 #!/bin/sh
2 #
3 # Run four jobs at the same time, with two Volumes.
4 #   Set max Vol bytes of first volume
5 #   to less than total backup to force Bacula to use the second
6 #   Volume.
7 #
8 TestName="four-concurrent-jobs-test"
9 JobName=Four-concurrent-jobs
10 . scripts/functions
11
12 scripts/cleanup
13 scripts/copy-test-confs
14 echo "${cwd}/build" >${cwd}/tmp/file-list
15
16 change_jobname NightlySave $JobName
17 start_test
18
19 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
20 @$out /dev/null
21 messages
22 @$out   ${cwd}/tmp/log1.out
23 label storage=File1
24 TestVolume001
25 label storage=File1
26 TestVolume002
27 update Volume=TestVolume001 MaxVolBytes=100000000
28 @#50000000
29 @#12
30 setdebug level=51 Storage=File1
31 status storage=File1
32 status client
33 llist volume=TestVolume001
34 llist volume=TestVolume002
35 list nextvol
36 1
37 run job=$JobName level=Full Storage=File1
38 yes
39 @#reload
40 llist volume=TestVolume001
41 llist volume=TestVolume002
42 list nextvol
43 1
44 run job=$JobName level=Full Storage=File1
45 yes
46 @#reload
47 llist volume=TestVolume001
48 llist volume=TestVolume002
49 list nextvol
50 1
51 run job=$JobName level=Full Storage=File1
52 yes
53 @#reload
54 llist volume=TestVolume001
55 llist volume=TestVolume002
56 list nextvol
57 1
58 status storage=File1
59 run job=$JobName level=Full Storage=File1
60 yes
61 status storage=File1
62 status client
63 @#reload
64 @#reload
65 list nextvol
66 1
67 @sleep 2
68 status dir
69 status client
70 status storage=File1
71 llist volume=TestVolume001
72 llist volume=TestVolume002
73 @#reload
74 @sleep 5
75 messages
76 @#reload
77 wait
78 status client
79 status storage=File1
80 @#reload
81 list nextvol
82 1
83 messages
84 @# 
85 @# now do a restore
86 @#
87 @$out ${cwd}/tmp/jobmedia.out
88 list volumes
89 sql
90 select JobId,MediaId,StartFile,StartBlock,EndFile,EndBlock from JobMedia;
91
92
93 @$out   ${cwd}/tmp/log2.out
94 status client
95 status storage=File1
96 setdebug level=100 Storage=File1
97 restore where=${cwd}/tmp/bacula-restores select storage=File1
98 unmark *
99 mark *
100 done
101 yes
102 wait
103 run job=$JobName level=Full Storage=File1 yes
104 wait
105 @#reload
106 messages
107 quit
108 END_OF_DATA
109
110 run_bacula
111 check_for_zombie_jobs storage=File1
112 stop_bacula
113
114 check_two_logs
115 check_restore_diff
116 end_test