]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: add zstd3 to zstd-test
authorAlain Spineux <alain@baculasystems.com>
Mon, 14 Aug 2023 09:29:15 +0000 (11:29 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:02 +0000 (13:57 +0200)
- 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

regress/tests/zstd-test

index c3bdfa5ee8658dff6d9ce0653d411cc3d9fe0857..427e81e6cd5da9b132dad8d5753822e39b49839c 100755 (executable)
@@ -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 <<END_OF_DATA >${cwd}/tmp/bconcmds
 @output /dev/null