]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/sparse-compressed-test
Begin simplification and cleanup of tests using shell functions
[bacula/bacula] / regress / tests / sparse-compressed-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-compressed-test"
7 JobName=Sparse-conpressed
8 . scripts/functions
9 set_debug 0
10
11 cwd=`pwd`
12 scripts/copy-test-confs
13 scripts/cleanup
14 echo "${cwd}/build" >/tmp/file-list
15
16 start_test
17
18 cat >tmp/bconcmds <<END_OF_DATA
19 @output /dev/null
20 messages
21 @$out tmp/log1.out
22 label storage=File volume=TestVolume001
23 run job=SparseCompressedTest yes
24 wait
25 messages
26 @# 
27 @# now do a restore
28 @#
29 @$out tmp/log2.out   
30 restore where=${cwd}/tmp/bacula-restores select all storage=File done
31 yes
32 wait
33 messages
34 @output
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