]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/four-concurrent-jobs-test
Fix regexwhere test
[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 @output /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 llist volume=TestVolume001
33 llist volume=TestVolume002
34 run job=$JobName level=Full Storage=File1
35 yes
36 reload
37 llist volume=TestVolume001
38 llist volume=TestVolume002
39 run job=$JobName level=Full Storage=File1
40 yes
41 reload
42 llist volume=TestVolume001
43 llist volume=TestVolume002
44 run job=$JobName level=Full Storage=File1
45 yes
46 reload
47 llist volume=TestVolume001
48 llist volume=TestVolume002
49 status storage=File1
50 run job=$JobName level=Full Storage=File1
51 yes
52 status storage=File1
53 reload
54 reload
55 reload
56 reload
57 @sleep 2
58 status dir
59 status storage=File1
60 llist volume=TestVolume001
61 llist volume=TestVolume002
62 reload
63 @sleep 5
64 messages
65 reload
66 reload
67 wait
68 status storage=File1
69 reload
70 messages
71 @# 
72 @# now do a restore
73 @#
74 @$out   ${cwd}/tmp/log2.out
75 restore where=${cwd}/tmp/bacula-restores select storage=File1
76 unmark *
77 mark *
78 done
79 yes
80 run job=$JobName level=Full Storage=File1 yes
81 wait
82 reload
83 reload
84 messages
85 @output
86 quit
87 END_OF_DATA
88
89 run_bacula
90 check_for_zombie_jobs storage=File1
91 stop_bacula
92
93 check_two_logs
94 check_restore_diff
95 end_test