From: Alain Spineux Date: Mon, 14 Aug 2023 09:29:15 +0000 (+0200) Subject: regress: add zstd3 to zstd-test X-Git-Tag: Beta-15.0.0~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=796cd3d6faa317d9d89f9d0c16dcb6d23af32e92;p=thirdparty%2Fbacula.git regress: add zstd3 to zstd-test - add XAPARAM ZSTD3 and NONE COMPRESSION ZSTD --> FD Bytes Written: 123,976 (123.9 KB) Elapsed time: 1 sec COMPRESSION ZSTD1 --> FD Bytes Written: 128,040 (128.0 KB) Elapsed time: 1 sec COMPRESSION ZSTD3 --> FD Bytes Written: 123,976 (123.9 KB) Elapsed time: 1 sec COMPRESSION ZSTD10 --> FD Bytes Written: 110,279 (110.2 KB) Elapsed time: 1 sec COMPRESSION ZSTD19 --> FD Bytes Written: 106,196 (106.1 KB) Elapsed time: 1 sec COMPRESSION NONE --> FD Bytes Written: 548,688 (548.6 KB) Elapsed time: 1 sec --- diff --git a/regress/tests/zstd-test b/regress/tests/zstd-test index c3bdfa5ee..427e81e6c 100755 --- a/regress/tests/zstd-test +++ b/regress/tests/zstd-test @@ -5,7 +5,7 @@ # # Run a simple backup of the Bacula build directory using the compressed option # then restore it. -# XPARAM ZSTD_LEVEL=(ZSTD|10:ZSTD1|10:ZSTD10|10:ZSTD19) +# XPARAM ZSTD_LEVEL=(ZSTD|10:ZSTD1|10:ZSTD3|10:ZSTD10|10:ZSTD19|11:NONE) TestName="zstd-test" JobName=zstd @@ -18,11 +18,13 @@ echo "${cwd}/build/po/fr.po" >${cwd}/tmp/file-list start_test -if [ -n "$ZSTD_LEVEL" ] ; then +if [ "$ZSTD_LEVEL" = "NONE" ] ; then + sed -i "s/compression\s*=\s*ZSTD\s*//" $conf/bacula-dir.conf +elif [ -n "$ZSTD_LEVEL" ] ; then sed -i "s/compression\s*=\s*ZSTD\s*/compression=${ZSTD_LEVEL}/" $conf/bacula-dir.conf else ZSTD_LEVEL="ZSTD" - fi +fi cat <${cwd}/tmp/bconcmds @output /dev/null