]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/four-concurrent-jobs-tape
b4fcc2a8e1a7521e5980657ab63c9e9cc2ccfbc1
[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-1t1d-tape"
6 JobName=FourConcurrentJobs
7 . scripts/functions
8
9 require_tape_drive
10
11 scripts/cleanup-tape
12 scripts/copy-tape-confs
13
14 echo "${cwd}/build" >${cwd}/tmp/file-list
15
16 change_jobname $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=DDS-4 volume=TestVolume001 slot=0 pool=Default
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 run job=$JobName level=Full Storage=DDS-4 yes
28 @sleep 2
29 status dir
30 @sleep 5
31 status dir
32 status storage=DDS-4
33 messages
34 wait
35 messages
36 @# 
37 @# now do a restore
38 @#
39 @$out ${cwd}/tmp/log2.out
40 restore where=${cwd}/tmp/bacula-restores select storage=DDS-4
41 unmark *
42 mark *
43 done
44 yes
45 wait
46 messages
47 @$out
48 quit
49 END_OF_DATA
50
51 run_bacula
52 check_for_zombie_jobs storage=DDS-4
53 stop_bacula
54
55 check_two_logs
56 check_restore_diff
57 end_test