]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/two-vol-test
Begin simplification and cleanup of tests using shell functions
[bacula/bacula] / regress / tests / two-vol-test
1 #!/bin/sh
2 #
3 # Run a simple backup of the Bacula build directory but 
4 #   split the archive into two volumes
5 #
6 TestName="two-vol-test"
7 JobName=TwoVol
8 . scripts/functions
9 set_debug 0
10
11 cwd=`pwd`
12 scripts/copy-test-confs
13 scripts/cleanup
14 echo "${cwd}/build" >/tmp/file-list
15 change_jobname $JobName
16
17 start_test
18
19 cat <<END_OF_DATA >tmp/bconcmds
20 @$out /dev/null
21 messages
22 @$out tmp/log1.out
23 label storage=File1 volume=TestVolume002
24 label storage=File1 volume=TestVolume001
25 update Volume=TestVolume002 MaxVolBytes=3000000
26 run job=$JobName storage=File1 yes
27 wait
28 messages
29 @# 
30 @# now do a restore
31 @#
32 @$out tmp/log2.out
33 restore where=${cwd}/tmp/bacula-restores select all storage=File1 done
34 yes
35 wait
36 messages
37 @$out
38 quit
39 END_OF_DATA
40
41 run_bacula
42 check_for_zombie_jobs storage=File1
43 stop_bacula
44
45 check_two_logs
46 check_restore_diff
47 end_test