]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/compressed-test
ebl show an other bug of the current code
[bacula/bacula] / regress / tests / compressed-test
index ba0a8debcaf3731cc92b6551dc5504080b4eab71..47fc8e4362e392ccc39957cab40a26915de8a190 100755 (executable)
@@ -6,19 +6,18 @@
 TestName="compressed-test"
 JobName=compressed
 . scripts/functions
-set_debug 0
 
-scripts/copy-test-confs
 scripts/cleanup
-echo "${cwd}/build" >/tmp/file-list
+scripts/copy-test-confs
+echo "${cwd}/build" >${cwd}/tmp/file-list
 
 change_jobname CompressedTest $JobName
 start_test
       
-cat <<END_OF_DATA >tmp/bconcmds
+cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 @output
 messages
-@$out tmp/log1.out
+@$out ${cwd}/tmp/log1.out
 status all
 status all
 messages
@@ -29,7 +28,7 @@ messages
 @# 
 @# now do a restore
 @#
-@$out tmp/log2.out
+@$out ${cwd}/tmp/log2.out
 restore where=${cwd}/tmp/bacula-restores select storage=File
 unmark *
 mark *
@@ -47,4 +46,9 @@ stop_bacula
 
 check_two_logs
 check_restore_diff
+grep " Software Compression" ${cwd}/tmp/log1.out | grep "%" 2>&1 1>/dev/null
+if [ $? != 0 ] ; then
+   echo "  !!!!! No compression !!!!!"
+   bstat=1
+fi
 end_test