TestName="sparse-encrypt-test"
JobName=Crypto
. scripts/functions
-set_debug 0
scripts/cleanup
scripts/copy-crypto-confs
-echo "${cwd}/build" >/tmp/file-list
+echo "${cwd}/build" >${cwd}/tmp/file-list
cd ${cwd}/build/src/tools
./gigaslam
if [ $? != 0 ]; then
fi
cd ${cwd}
+change_jobname SparseTest $JobName
start_test
-cat <<END_OF_DATA >tmp/bconcmds
+cat <<END_OF_DATA >${cwd}/tmp/bconcmds
@$out /dev/null
messages
-@$out tmp/log1.out
+@$out ${cwd}/tmp/log1.out
label storage=File volume=TestVolume001
setdebug level=10 fd
run job=$JobName yes
@#
@# now do a restore
@#
-@$out tmp/log2.out
+@$out ${cwd}/tmp/log2.out
@# setdebug level=0 fd
restore where=${cwd}/tmp/bacula-restores storage=File
5
yes
wait
messages
-@$out
quit
END_OF_DATA
check_restore_diff
end_test
rm -f ${cwd}/build/src/tools/gigaslam.gif
-rm -r ${cwd}/build/gigaslam.gif
+rm -f ${cwd}/build/gigaslam.gif