3 # Run a simple backup of the Bacula build directory using the Sparse option
6 TestName="gigaslam-sparse-test"
13 scripts/copy-test-confs
14 echo "${cwd}/build" >/tmp/file-list
15 cd ${cwd}/build/src/tools
18 echo "Execute of ${cwd}/build/src/tools/gigaslam failed."
19 rm -f ${cwd}/build/src/tools/gigaslam.gif
26 cat >tmp/bconcmds <<END_OF_DATA
30 label storage=File volume=TestVolume001
39 restore where=${cwd}/tmp/bacula-restores select storage=File
51 check_for_zombie_jobs storage=File
54 size=`du ${cwd}/tmp/bacula-restores/${cwd}/build/src/tools/gigaslam.gif | cut -f 1`
55 if [ $size -gt 120 ]; then
56 echo "========== restored sparse file gigaslam.gif too big ========="
57 echo " size is ${size}K it should be 120K"
63 rm -f ${cwd}/build/src/tools/gigaslam.gif
64 rm -f ${cwd}/build/gigaslam.gif