]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/eot-fail-tape
regress: tweak the message in the update_win32()
[bacula/bacula] / regress / tests / eot-fail-tape
1 #!/bin/sh
2 #
3 #
4 TestName="eot-fail-tape"
5 JobName=eotfailtape
6 . scripts/functions
7
8 require_tape_drive
9
10 scripts/cleanup-tape
11 scripts/copy-tape-confs
12  
13 echo "${cwd}/build" >${cwd}/tmp/file-list
14
15 outf="${cwd}/tmp/sed_tmp"
16 echo "s%# Maximum File Size%  Maximum File Size%g" >${outf}
17 cp -f ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
18 sed -f ${outf} ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
19
20 change_jobname $JobName
21 start_test
22
23 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
24 @$out /dev/null
25 messages
26 @$out tmp/log1.out
27 label storage=tape volume=TestVolume001 slot=0 pool=Default
28 @#update Volume=TestVolume001 MaxVolBytes=3000000
29 run job=$JobName yes
30 wait
31 messages
32 @# 
33 @# now do a restore
34 @#
35 @$out tmp/log2.out
36 restore where=${cwd}/tmp/bacula-restores select all storage=tape done
37 yes
38 wait
39 messages
40 quit
41 END_OF_DATA
42
43 run_bacula
44 check_for_zombie_jobs storage=tape
45 stop_bacula
46
47 check_two_logs
48 check_restore_diff
49 end_test