X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fcompressed-test;h=47fc8e4362e392ccc39957cab40a26915de8a190;hb=d0afb9386d99f0e4f14dc065a5eb5109fb2befe4;hp=a483cb39991e3ce3c2b3001ddb0fb7cbc2ea9656;hpb=4ee91493e376603836ad60ae78da1a0e603c9755;p=bacula%2Fbacula diff --git a/regress/tests/compressed-test b/regress/tests/compressed-test index a483cb3999..47fc8e4362 100755 --- a/regress/tests/compressed-test +++ b/regress/tests/compressed-test @@ -3,46 +3,52 @@ # Run a simple backup of the Bacula build directory using the compressed option # then restore it. # -cwd=`pwd` +TestName="compressed-test" +JobName=compressed +. scripts/functions + +scripts/cleanup scripts/copy-test-confs -rm -rf /tmp/TestVolume001 /tmp/bacula-restores -echo "${cwd}/build" >/tmp/file-list -bin/bacula stop -bin/drop_sqlite_tables -bin/make_sqlite_tables -bin/bacula start -bin/console -c bin/console.conf <${cwd}/tmp/file-list + +change_jobname CompressedTest $JobName +start_test + +cat <${cwd}/tmp/bconcmds @output -label -TestVolume001 -run job=CompressedTest -yes +messages +@$out ${cwd}/tmp/log1.out +status all +status all +messages +label storage=File volume=TestVolume001 +run job=$JobName storage=File yes wait messages @# @# now do a restore @# -restore -5 +@$out ${cwd}/tmp/log2.out +restore where=${cwd}/tmp/bacula-restores select storage=File +unmark * +mark * done yes wait -@output /dev/null messages +@output quit END_OF_DATA -bin/bacula stop -diff -ur build /tmp/bacula-restores${cwd}/build + +run_bacula +check_for_zombie_jobs storage=File +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 " " - echo " " - echo " ===== compressed-test Bacula source failed!!! ===== " - echo " ===== compressed-test failed!!! ===== " >>test.out - echo " " -else - echo " ===== compressed-test Bacula source OK ===== " - echo " ===== compressed-test OK ===== " >>test.out + echo " !!!!! No compression !!!!!" + bstat=1 fi -rm -rf /tmp/bacula-restores +end_test