3 # Run a simple backup with encryption and a real sparse file.
5 TestName="sparse-encrypt-test"
11 scripts/copy-crypto-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 <<END_OF_DATA >tmp/bconcmds
28 label storage=File volume=TestVolume001
38 @# setdebug level=0 fd
39 restore where=${cwd}/tmp/bacula-restores storage=File
52 check_for_zombie_jobs storage=File
55 size=`du ${cwd}/tmp/bacula-restores/${cwd}/build/src/tools/gigaslam.gif | cut -f 1`
56 if [ $size -gt 120 ]; then
57 echo "========== restored sparse file: gigaslam.gif too big ========="
58 echo " size is ${size}K it should be 120K"
64 rm -f ${cwd}/build/src/tools/gigaslam.gif
65 rm -r ${cwd}/build/gigaslam.gif