3 # Run a simple backup of the Bacula build directory using the Sparse option
6 TestName="gigaslam-sparse-test"
11 scripts/copy-test-confs
12 echo "${cwd}/build" >/tmp/file-list
13 cd ${cwd}/build/src/tools
16 echo "Execute of ${cwd}/build/src/tools/gigaslam failed."
17 rm -f ${cwd}/build/src/tools/gigaslam.gif
24 cat >tmp/bconcmds <<END_OF_DATA
28 label storage=File volume=TestVolume001
37 restore where=${cwd}/tmp/bacula-restores select storage=File
49 check_for_zombie_jobs storage=File
52 size=`du ${cwd}/tmp/bacula-restores/${cwd}/build/src/tools/gigaslam.gif | cut -f 1`
53 if [ $size -gt 120 ]; then
54 echo "========== restored sparse file gigaslam.gif too big ========="
55 echo " size is ${size}K it should be 120K"
61 rm -f ${cwd}/build/src/tools/gigaslam.gif
62 rm -f ${cwd}/build/gigaslam.gif