]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/win32-to-linux-tape
regress: tweak the message in the update_win32()
[bacula/bacula] / regress / tests / win32-to-linux-tape
1 #!/bin/sh
2 #
3 # Run a simple backup of the Bacula build directory 
4 #   to a tape then restore it, we do that twice to ensure that
5 #   we can correctly append to a tape.
6 #
7 TestName="win32-to-linux-tape"
8 JobName=AutoLabel
9 . scripts/functions
10
11 require_tape_drive
12
13 scripts/copy-win32-confs
14 scripts/cleanup-tape
15
16 echo "${cwd}/build" >${cwd}/tmp/file-list
17
18 change_job $JobName
19 start_test
20
21 cat <<END_OF_DATA >tmp/bconcmds
22 @$out /dev/null
23 messages
24 @$out tmp/log1.out
25 label storage=tape volume=TestVolume001 slot=0 pool=Default drive=0
26 run job=NightlySave yes
27 @sleep 10
28 status storage=tape
29 @sleep 30
30 messages
31 wait
32 messages
33 @# 
34 @# now do a restore
35 @#
36 @$out tmp/log2.out
37 restore where=${cwd}/tmp/bacula-restores client=Tibs select all storage=tape done
38 yes
39 wait
40 messages
41 END_OF_DATA
42
43 run_bacula
44 check_for_zombie_jobs storage=tape
45 stop_bacula
46
47 check_two_logs
48 # No diff for the moment
49 dstat=0
50 end_test