]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/fast-two-pool-test
Add debug
[bacula/bacula] / regress / tests / fast-two-pool-test
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 #  Note, we use the virtual disk autochanger.
11 #
12 TestName="fast-two-pool-test"
13 JobName=Fast-two-pool
14 . scripts/functions
15
16 scripts/cleanup
17 scripts/copy-2disk-confs
18 scripts/prepare-two-disks
19  
20 # Make a relatively large backup set 5 x source code directory
21 #  Reduced to 1 for portable
22 echo "${cwd}/build" >${cwd}/tmp/file-list
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
27 start_test
28
29 # Write out bconsole commands to a file
30 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
31 @output /dev/null
32 messages
33 @$out ${cwd}/tmp/log1.out
34 @#setdebug level=150 storage=DDS-4
35 label storage=DDS-4 volume=TestVolume001 slot=1 pool=Full drive=0
36 label storage=DDS-4 volume=TestVolume002 slot=2 pool=Default drive=0
37 list volumes
38 @# Start job with Client run before and sleep
39 run job=NightlySave1 level=Full pool=Default yes
40 run job=NightlySave1 level=Full pool=Default yes
41 @# wait between starting jobs
42 @sleep 10
43 @#setdebug level=100 storage=DDS-4
44 run job=NightlySave1 level=Full pool=Full yes
45 run job=NightlySave1 level=Full pool=Full yes
46 status storage=DDS-4
47 messages
48 wait
49 messages
50 @# 
51 @# now do a restore
52 @#
53 @$out ${cwd}/tmp/log2.out
54 list volumes
55 list jobs
56 status storage=DDS-4
57 messages
58 setdebug level=100 storage=DDS-4
59 restore where=${cwd}/tmp/bacula-restores select all storage=DDS-4 done
60 yes
61 wait
62 messages
63 @$out
64 quit
65 END_OF_DATA
66
67 # exit
68 run_bacula
69 check_for_zombie_jobs storage=DDS-4
70 stop_bacula
71
72 check_two_logs
73 check_restore_diff
74 end_test