]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/sparse-test
regress: tweak the message in the update_win32()
[bacula/bacula] / regress / tests / sparse-test
1 #!/bin/sh
2 #
3 # Run a simple backup of the Bacula build directory using the Sparse option
4 #   then restore it.
5 #
6 TestName="sparse-test"
7 JobName=SparseTest
8 . scripts/functions
9
10 scripts/cleanup
11 scripts/copy-test-confs
12 echo "${cwd}/build" >${cwd}/tmp/file-list
13
14 start_test
15
16 cat >${cwd}/tmp/bconcmds <<END_OF_DATA
17 @$out /dev/null
18 messages
19 @$out ${cwd}/tmp/log1.out
20 label storage=File volume=TestVolume001
21 run job=$JobName yes
22 wait
23 messages
24 @# 
25 @# now do a restore
26 @#
27 @$out ${cwd}/tmp/log2.out
28 restore where=${cwd}/tmp/bacula-restores select storage=File
29 unmark *
30 mark *
31 done
32 yes
33 wait
34 messages
35 quit
36 END_OF_DATA
37
38 run_bacula
39 check_for_zombie_jobs storage=File 
40 stop_bacula
41
42 check_two_logs
43 check_restore_diff
44 end_test