]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/gigaslam-sparse-test
Update
[bacula/bacula] / regress / tests / gigaslam-sparse-test
index 00223111a288f0edc2da196106602b0178364d3a..34288e92048682367e148efe8c8c5f9addc20387 100755 (executable)
@@ -3,10 +3,10 @@
 # Run a simple backup of the Bacula build directory using the Sparse option
 #   then restore it.
 #
-TestName="sparse-test"
+TestName="gigaslam-sparse-test"
 JobName=SparseTest
 . scripts/functions
-set_debug 1
+set_debug 0
 
 cwd=`pwd`
 scripts/cleanup
@@ -49,9 +49,14 @@ END_OF_DATA
 
 run_bacula
 check_for_zombie_jobs storage=File 
-ls -l ${cwd}/tmp
 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