]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/four-concurrent-jobs-tape
0d0918f62b8fd8a74636ddfc80a10abcb0891c7f
[bacula/bacula] / regress / tests / four-concurrent-jobs-tape
1 #!/bin/sh
2 #
3 # Run four jobs at the same time
4 #
5 TestName="four-concurrent-jobs-tape"
6 JobName=FourConcurrentJobs
7 . scripts/functions
8 set_debug 0
9
10 scripts/cleanup-tape
11 scripts/copy-tape-confs
12
13 echo "${cwd}/build" >/tmp/file-list
14
15 change_jobname $JobName
16 start_test
17
18 cat <<END_OF_DATA >tmp/bconcmds
19 @output /dev/null
20 messages
21 @$out tmp/log1.out
22 label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
23 run job=$JobName level=Full Storage=DDS-4 yes
24 run job=$JobName level=Full Storage=DDS-4 yes
25 run job=$JobName level=Full Storage=DDS-4 yes
26 run job=$JobName level=Full Storage=DDS-4 yes
27 @sleep 2
28 status dir
29 @sleep 5
30 status dir
31 status storage=DDS-4
32 messages
33 wait
34 messages
35 @# 
36 @# now do a restore
37 @#
38 @$out tmp/log2.out
39 restore where=${cwd}/tmp/bacula-restores select storage=DDS-4
40 unmark *
41 mark *
42 done
43 yes
44 wait
45 messages
46 @$out
47 quit
48 END_OF_DATA
49
50 run_bacula
51 check_for_zombie_jobs storage=DDS-4
52 stop_bacula
53
54 check_two_logs
55 check_restore_diff
56 end_test