From: Eric Bollengier Date: Tue, 12 Oct 2021 15:29:32 +0000 (+0200) Subject: regress: Add zstd-test X-Git-Tag: Beta-15.0.0~830 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64447d1b4f35289941bc2174111b2b171bcf49e7;p=thirdparty%2Fbacula.git regress: Add zstd-test --- diff --git a/regress/tests/zstd-test b/regress/tests/zstd-test new file mode 100755 index 000000000..39c0e4d2d --- /dev/null +++ b/regress/tests/zstd-test @@ -0,0 +1,57 @@ +#!/bin/sh +# +# Copyright (C) 2000-2020 Kern Sibbald +# License: BSD 2-Clause; see file LICENSE-FOSS +# +# Run a simple backup of the Bacula build directory using the compressed option +# then restore it. +# +TestName="zstd-test" +JobName=zstd +. scripts/functions + +scripts/cleanup +scripts/copy-test-confs +echo "${cwd}/build/po/fr.po" >${cwd}/tmp/file-list + +start_test + +cat <${cwd}/tmp/bconcmds +@output /dev/null +messages +@$out ${cwd}/tmp/log1.out +setdebug level=1 client +status all +messages +label storage=File volume=TestVolume001 +setdebug level=0 client +run job=ZSTDTest storage=File yes +run job=LZOTest storage=File yes +wait +messages +@# +@# now do a restore +@# +@$out ${cwd}/tmp/log2.out +restore where=${cwd}/tmp/bacula-restores fileset=ZSTDSet select storage=File +unmark * +mark * +done +yes +wait +messages +quit +END_OF_DATA + +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 " !!!!! No compression !!!!!" + bstat=1 +fi +end_test