]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/bug-1227
regress: tweak the message in the update_win32()
[bacula/bacula] / regress / tests / bug-1227
1 #!/bin/sh
2 #
3 # Test that reproduce bug 1227
4 #
5 TestName="bug-1227"
6 JobName=backuptape
7 . scripts/functions
8
9 require_tape_drive
10
11 scripts/copy-tape-confs
12 scripts/cleanup-tape
13
14 echo "${cwd}/build" >${cwd}/tmp/file-list
15
16 change_jobname NightlySave $JobName
17 start_test
18
19
20 # Write out bconsole commands
21 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
22 @$out /dev/null
23 messages
24 @$out ${cwd}/tmp/log1.out
25 label storage=tape volume=TestVolume001 slot=0 pool=Default
26 messages
27 END_OF_DATA
28
29 run_bacula
30 stop_bacula
31
32 FILE=`awk  '/Archive Device = / { print $4 }' bin/bacula-sd.conf`
33 cp /dev/null $FILE
34
35 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
36 @$out ${cwd}/tmp/log1.out
37 messages
38 run job=$JobName yes
39 @sleep 10
40 messages
41 setdebug level=400 storage=tape trace=1
42 setdebug level=400 director trace=1
43 label storage=tape volume=TestVolume002 slot=0 pool=Default
44 messages
45 @sleep 5
46 mount storage=tape slot=0
47 @sleep 2
48 messages
49 @sleep 2
50 mount storage=tape slot=0
51 @sleep 2
52 messages
53 cancel jobid=1
54 wait
55 messages
56 list volumes
57 END_OF_DATA
58
59 run_bacula
60 check_for_zombie_jobs storage=tape
61 stop_bacula
62
63 touch ${cwd}/tmp/log2.out
64 check_two_logs
65 check_restore_diff
66
67 end_test