]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/small-file-size-tape
Update disk tests
[bacula/bacula] / regress / tests / small-file-size-tape
1 #!/bin/sh
2 #
3 # Run a simple backup of the Bacula build directory 
4 #   to a tape where the maximum tape file size is set to 1M
5 #
6 TestName="small-file-size-tape"
7 JobName=smallfilesize
8 . scripts/functions
9 set_debug 0
10
11 scripts/copy-tape-confs
12 scripts/cleanup-tape
13
14 echo "${cwd}/build" >/tmp/file-list
15 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
16 sed "s%# Maximum File Size%  Maximum File Size%" ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
17
18 change_jobname $JobName
19 start_test
20
21 cat <<END_OF_DATA >tmp/bconcmds
22 @output /dev/null
23 messages
24 @$out t tmp/log1.out
25 label storage=DDS-4 volume=TestVolume001 slot=0 pool=Default
26 setdebug level=2 storage=DDS-4
27 run job=$JobName yes
28 wait
29 messages
30 @# 
31 @# now do a restore
32 @#
33 @$out   tmp/log2.out
34 restore where=${cwd}/tmp/bacula-restores select storage=DDS-4
35 unmark *
36 mark *
37 done
38 yes
39 wait
40 messages
41 @output
42 quit
43 END_OF_DATA
44
45 run_bacula
46 check_for_zombie_jobs storage=DDS-4
47 stop_bacula
48
49 check_two_logs
50 check_restore_diff
51 end_test