]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/four-concurrent-jobs-test
Update disk tests
[bacula/bacula] / regress / tests / four-concurrent-jobs-test
1 #!/bin/sh
2 #
3 # Run two jobs at the same time
4 #
5 TestName="four-concurrent-jobs-test"
6 JobName=Four-concurrent-jobs
7 . scripts/functions
8 set_debug 0
9
10 scripts/copy-test-confs
11 scripts/cleanup
12 echo "${cwd}/build" >/tmp/file-list
13
14 change_jobname NightlySave $JobName
15 start_test
16
17 cat <<END_OF_DATA >tmp/bconcmds
18 @output /dev/null
19 messages
20 @$out   tmp/log1.out
21 label storage=File1
22 TestVolume001
23 label storage=File1
24 TestVolume002
25 update Volume=TestVolume001 MaxVolBytes=100000000
26 @#50000000
27 @#12
28 run job=$JobName level=Full Storage=File1
29 yes
30 reload
31 run job=$JobName level=Full Storage=File1
32 yes
33 reload
34 run job=$JobName level=Full Storage=File1
35 yes
36 reload
37 run job=$JobName level=Full Storage=File1
38 yes
39 reload
40 reload
41 reload
42 reload
43 @sleep 2
44 status dir
45 reload
46 @sleep 5
47 messages
48 reload
49 reload
50 wait
51 reload
52 messages
53 @# 
54 @# now do a restore
55 @#
56 @$out   tmp/log2.out
57 restore where=${cwd}/tmp/bacula-restores select storage=File1
58 unmark *
59 mark *
60 done
61 yes
62 wait
63 reload
64 reload
65 messages
66 @output
67 quit
68 END_OF_DATA
69
70 run_bacula
71 check_for_zombie_jobs storage=File1
72 stop_bacula
73
74 check_two_logs
75 check_restore_diff
76 end_test