]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/sparse-encrypt-test
Update
[bacula/bacula] / regress / tests / sparse-encrypt-test
index 0003e4871883ee6de1ac9a0563e68cd1cf3a43b2..3893dae71ab8a2405e8077d1e55668b58db89db9 100755 (executable)
@@ -3,7 +3,7 @@
 # Run a simple backup (with encryption) of the Bacula build directory
 #   then verify the signatures.
 #
-TestName="data-encrypt-test"
+TestName="sparse-encrypt-test"
 JobName=Crypto
 . scripts/functions
 set_debug 1
@@ -31,6 +31,7 @@ setdebug level=10 fd
 run job=$JobName yes
 wait
 messages
+list volumes
 @# 
 @# now do a restore
 @#
@@ -52,6 +53,12 @@ sleep 2
 check_for_zombie_jobs storage=File 
 stop_bacula
 
+size=`du ${cwd}/tmp/bacula-restores/${cwd}/build/src/tools/gigaslam.gif | cut -f 1`
+if [ $size -gt 120 ]; then
+   echo "========== restored sparse file: gigaslam.gif too big ========="
+   echo "      size is ${size}K it should be 120K"
+fi
+
 check_two_logs
 check_restore_diff
 end_test