]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
added --max to test suite
authorYann Collet <cyan@fb.com>
Sun, 9 Feb 2025 20:26:36 +0000 (12:26 -0800)
committerYann Collet <cyan@fb.com>
Sun, 9 Feb 2025 20:26:36 +0000 (12:26 -0800)
tests/cli-tests/compression/levels.sh
tests/cli-tests/compression/levels.sh.stderr.exact

index cc2700a3097a9ebcc0ae13842d79dfc9f13660fa..db3baba6d44e4b1caae44f9bf9e686de70eccd82 100755 (executable)
@@ -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
index c8fb79c6896b4d9ff5b61c45cf52ab231e4c9911..ddec06467f38f930cb3f032f8be46b58c4b07905 100644 (file)
@@ -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