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