3 # Run a simple backup of the Bacula build directory using the compressed option
7 scripts/copy-test-confs
9 echo "${cwd}/build" >/tmp/file-list
13 echo " === Starting compressed-test ==="
14 echo " === Starting compressed-test ===" >>working/log
17 bin/bacula start 2>&1 >/dev/null
18 bin/bconsole -c bin/bconsole.conf <<END_OF_DATA
24 label storage=File volume=TestVolume001
25 run job=CompressedTest storage=File yes
32 restore where=${cwd}/tmp/bacula-restores select storage=File
42 scripts/check_for_zombie_jobs storage=File
43 bin/bacula stop 2>&1 >/dev/null
44 grep "^Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
46 grep "^Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null
48 diff -r build tmp/bacula-restores${cwd}/build 2>&1 >/dev/null
49 if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then
52 echo " !!!!! compressed-test Bacula source failed!!! !!!!! "
53 echo " !!!!! compressed-test failed!!! !!!!! " >>test.out
54 if [ $bstat != 0 -o $rstat != 0 ] ; then
55 echo " !!!!! Bad Job termination status !!!!! "
56 echo " !!!!! Bad Job termination status !!!!! " >>test.out
58 echo " !!!!! Restored files differ !!!!! "
59 echo " !!!!! Restored files differ !!!!! " >>test.out
63 echo " ===== compressed-test Bacula source OK ===== "
64 echo " ===== compressed-test OK ===== " >>test.out