]> git.sur5r.net Git - bacula/bacula/blob - regress/tests/sparse-compressed-test
Add start echos for each test
[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 cwd=`pwd`
7 scripts/copy-test-confs
8 rm -rf /tmp/TestVolume001 /tmp/bacula-restores
9 echo "${cwd}/build" >/tmp/file-list
10 bin/bacula stop 
11 bin/drop_sqlite_tables
12 bin/make_sqlite_tables
13
14 echo " "
15 echo " "
16 echo " === Starting sparse-compressed-test ==="
17 echo " "
18 echo " "
19
20 bin/bacula start
21 bin/console -c bin/console.conf <<END_OF_DATA
22 @output /dev/null
23 messages
24 @output
25 label
26 TestVolume001
27 run job=SparseCompressedTest
28 yes
29 wait
30 messages
31 @# 
32 @# now do a restore
33 @#
34 restore
35 5
36 done
37 yes
38 wait
39 @output /dev/null
40 messages
41 quit
42 END_OF_DATA
43
44 bin/bacula stop
45 diff -ur build /tmp/bacula-restores${cwd}/build
46 if [ $? != 0 ] ; then
47    echo " "
48    echo " "
49    echo "  ===== sparse-compressed-test Bacula source failed!!! ===== "
50    echo "  ===== sparse-compressed-test failed!!! ===== " >>test.out
51    echo " "
52 else
53    echo "  ===== sparse-compressed-test Bacula source OK ===== "
54    echo "  ===== sparse-compressed-test OK ===== " >>test.out
55 fi
56 rm -rf /tmp/bacula-restores