]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/span-vol-test
regress: Add test that mixes mssql and systemstate
[bacula/bacula] / regress / tests / span-vol-test
1 #!/bin/sh
2 #
3 # Run a simple backup of the Bacula build directory but 
4 #   split the archive into four volumes, two of which are
5 #   totally full. I.e. make sure that bsr selects all tapes 
6 #   including those fully spanned.
7 #
8 TestName="span-vol-test"
9 JobName=SpanVol
10 . scripts/functions
11
12 scripts/cleanup
13 scripts/copy-test-confs
14 echo "${cwd}/build" >${cwd}/tmp/file-list
15
16 change_jobname NightlySave $JobName
17 start_test
18
19 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
20 @$out /dev/null
21 messages
22 @$out ${cwd}/tmp/log1.out
23 label storage=File1 volume=TestVolume004
24 label storage=File1 volume=TestVolume003
25 label storage=File1 volume=TestVolume002
26 label storage=File1 volume=TestVolume001
27 update Volume=TestVolume004 MaxVolBytes=3000000
28 update Volume=TestVolume003 MaxVolBytes=3000000
29 update Volume=TestVolume002 MaxVolBytes=3000000
30 run job=$JobName storage=File1 yes
31 wait
32 list volumes
33 messages
34 @# 
35 @# now do a restore
36 @#
37 @$out ${cwd}/tmp/log2.out
38 restore where=${cwd}/tmp/bacula-restores select storage=File1
39 unmark *
40 mark *
41 done
42 yes
43 wait
44 messages
45 quit
46 END_OF_DATA
47
48 run_bacula
49 check_for_zombie_jobs storage=File1
50 stop_bacula
51
52 check_two_logs
53 check_restore_diff
54 end_test