]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/two-pool-2t1da-tape
Turn off two failing tests for the moment
[bacula/bacula] / regress / tests / two-pool-2t1da-tape
1 #!/bin/sh
2 #
3 # This is Arno's test.  It uses two pools, two tapes, and
4 #  an autochanger. Note, the Director has three Pools in its 
5 #  conf:  Default, Full, and Inc.  Default is used in the
6 #  NightlySave job by default.  What is backed up is what
7 #  is in ${cwd}/tmp/file-list, which is by default the Bacula
8 #  source code (i.e. the build directory).
9 #
10 TestName="two-pool-2t1da-tape"
11 JobName=twopooltape
12 . scripts/functions
13
14 skip_if_no_autochanger
15
16 scripts/cleanup
17 scripts/copy-2tape-confs
18 echo "Prepare two tapes"
19 scripts/prepare-two-tapes
20 echo "Done prepare two tapes"
21  
22 # Make a relatively large backup set 5 x source code directory
23 echo "${cwd}/build" >${cwd}/tmp/file-list
24 echo "${cwd}/build" >>${cwd}/tmp/file-list
25 echo "${cwd}/build" >>${cwd}/tmp/file-list
26 echo "${cwd}/build" >>${cwd}/tmp/file-list
27 echo "${cwd}/build" >>${cwd}/tmp/file-list
28
29 start_test
30
31 # Write out bconsole commands to a file
32 cat <<END_OF_DATA >tmp/bconcmds
33 @output /dev/null
34 messages
35 @$out tmp/log1.out
36 label storage=DDS-4 volume=TestVolume001 slot=1 pool=Full drive=0
37 label storage=DDS-4 volume=TestVolume002 slot=2 pool=Default drive=0
38 list volumes
39 @# Start job with Client run before and sleep
40 run job=NightlySave1 level=Full pool=Default yes
41 run job=NightlySave1 level=Full pool=Default yes
42 run job=NightlySave1 level=Full pool=Default yes
43 @# wait between starting jobs
44 @sleep 60
45 @#setdebug level=100 storage=DDS-4
46 run job=NightlySave2 level=Full pool=Full yes
47 run job=NightlySave2 level=Full pool=Full yes
48 run job=NightlySave2 level=Full pool=Full yes
49 @sleep 10
50 messages
51 @sleep 10
52 messages
53 @sleep 10
54 status storage=DDS-4
55 messages
56 wait
57 list volumes
58 messages
59 @# 
60 @# now do a restore
61 @#
62 @$out tmp/log2.out
63 restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
64 yes
65 wait
66 messages
67 @$out
68 quit
69 END_OF_DATA
70
71 run_bacula
72 check_for_zombie_jobs storage=DDS-4
73 stop_bacula
74
75 check_two_logs
76 check_restore_diff
77 end_test