tests/compressed-test
 tests/concurrent-jobs-test
 tests/data-encrypt-test
+#tests/sparse-encrypt-test
+#tests/gigaslam-sparse-test
 tests/differential-test
 tests/four-concurrent-jobs-test
 tests/four-jobs-test
 
 messages
 @$out tmp/log1.out
 label storage=File volume=TestVolume001
-setdebug level=300 fd
+@#setdebug level=10 fd
 run job=$JobName yes
 wait
 messages
 @# now do a restore
 @#
 @$out tmp/log2.out
-setdebug level=0 fd
+@#setdebug level=10 fd
 restore where=${cwd}/tmp/bacula-restores storage=File
 5
 mark *
 
--- /dev/null
+#!/bin/sh
+#
+# Run a simple backup of the Bacula build directory using the Sparse option
+#   then restore it.
+#
+TestName="sparse-test"
+JobName=SparseTest
+. scripts/functions
+set_debug 1
+
+cwd=`pwd`
+scripts/cleanup
+scripts/copy-test-confs
+echo "${cwd}/build" >/tmp/file-list
+cd ${cwd}/build/src/tools
+./gigaslam
+if [ $? != 0 ]; then
+   echo "Execute of ${cwd}/build/src/tools/gigaslam failed."
+   rm -f ${cwd}/build/src/tools/gigaslam.gif
+   exit 1
+fi
+cd ${cwd}
+
+start_test
+
+cat >tmp/bconcmds <<END_OF_DATA
+@output /dev/null
+messages
+@$out tmp/log1.out
+label storage=File volume=TestVolume001
+run job=$JobName yes
+wait
+messages
+list volumes
+@# 
+@# now do a restore
+@#
+@$out tmp/log2.out
+restore where=${cwd}/tmp/bacula-restores select storage=File
+unmark *
+mark *
+done
+yes
+wait
+messages
+@output
+quit
+END_OF_DATA
+
+run_bacula
+check_for_zombie_jobs storage=File 
+ls -l ${cwd}/tmp
+stop_bacula
+
+check_two_logs
+check_restore_diff
+end_test
+rm -f ${cwd}/build/src/tools/gigaslam.gif
 
 TestName="restore-disk-seek-test"
 JobName=restore-disk-seek
 . scripts/functions
-set_debug 1
+set_debug 0
 
 scripts/cleanup
 scripts/copy-test-confs
 
--- /dev/null
+#!/bin/sh
+#
+# Run a simple backup (with encryption) of the Bacula build directory
+#   then verify the signatures.
+#
+TestName="data-encrypt-test"
+JobName=Crypto
+. scripts/functions
+set_debug 1
+
+scripts/cleanup
+scripts/copy-crypto-confs
+echo "${cwd}/build" >/tmp/file-list
+cd ${cwd}/build/src/tools
+./gigaslam
+if [ $? != 0 ]; then
+   echo "Execute of ${cwd}/build/src/tools/gigaslam failed."
+   rm -f ${cwd}/build/src/tools/gigaslam.gif
+   exit 1
+fi
+cd ${cwd}
+
+start_test
+
+cat <<END_OF_DATA >tmp/bconcmds
+@$out /dev/null
+messages
+@$out tmp/log1.out
+label storage=File volume=TestVolume001
+setdebug level=10 fd
+run job=$JobName yes
+wait
+messages
+@# 
+@# now do a restore
+@#
+@$out tmp/log2.out
+@# setdebug level=0 fd
+restore where=${cwd}/tmp/bacula-restores storage=File
+5
+mark *
+done
+yes
+wait
+messages
+@$out
+quit
+END_OF_DATA
+
+run_bacula
+sleep 2
+check_for_zombie_jobs storage=File 
+stop_bacula
+
+check_two_logs
+check_restore_diff
+end_test
+rm -f ${cwd}/build/src/tools/gigaslam.gif