From: Yann Collet Date: Sun, 9 Feb 2025 20:26:36 +0000 (-0800) Subject: added --max to test suite X-Git-Tag: v1.5.7^2~6^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41b719375778ca92978f406b44bdea06cffbf108;p=thirdparty%2Fzstd.git added --max to test suite --- diff --git a/tests/cli-tests/compression/levels.sh b/tests/cli-tests/compression/levels.sh index cc2700a30..db3baba6d 100755 --- a/tests/cli-tests/compression/levels.sh +++ b/tests/cli-tests/compression/levels.sh @@ -10,9 +10,11 @@ zstd --fast=10 file -o file-f10.zst -q zstd --fast=1 file -o file-f1.zst -q zstd -1 file -o file-1.zst -q zstd -19 file -o file-19.zst -q +zstd --max file -o file-max.zst -q -zstd -t file-f10.zst file-f1.zst file-1.zst file-19.zst +zstd -t file-f10.zst file-f1.zst file-1.zst file-19.zst file-max.zst +cmp_size -le file-max.zst file-19.zst cmp_size -lt file-19.zst file-1.zst cmp_size -lt file-1.zst file-f1.zst cmp_size -lt file-f1.zst file-f10.zst diff --git a/tests/cli-tests/compression/levels.sh.stderr.exact b/tests/cli-tests/compression/levels.sh.stderr.exact index c8fb79c68..ddec06467 100644 --- a/tests/cli-tests/compression/levels.sh.stderr.exact +++ b/tests/cli-tests/compression/levels.sh.stderr.exact @@ -6,10 +6,12 @@ zstd --fast=10 file -o file-f10.zst -q zstd --fast=1 file -o file-f1.zst -q zstd -1 file -o file-1.zst -q zstd -19 file -o file-19.zst -q +zstd --max file -o file-max.zst -q -zstd -t file-f10.zst file-f1.zst file-1.zst file-19.zst -4 files decompressed : 262148 bytes total +zstd -t file-f10.zst file-f1.zst file-1.zst file-19.zst file-max.zst +5 files decompressed : 327685 bytes total +cmp_size -le file-max.zst file-19.zst cmp_size -lt file-19.zst file-1.zst cmp_size -lt file-1.zst file-f1.zst cmp_size -lt file-f1.zst file-f10.zst