]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
update levels.sh test 3391/head
authorYann Collet <cyan@fb.com>
Thu, 22 Dec 2022 00:21:29 +0000 (16:21 -0800)
committerYann Collet <cyan@fb.com>
Tue, 3 Jan 2023 22:04:41 +0000 (14:04 -0800)
comparing level 19 to level 22 and expecting a stricter better result from level 22
is not that guaranteed,
because level 19 and 22 are very close to each other,
especially for small files,
so any noise in the final compression result
result in failing this test.

Level 22 could be compared to something much lower, like level 15,
But level 19 is required anyway, because there is a clamping test which depends on it.

Removed level 22, kept level 19

tests/cli-tests/compression/levels.sh
tests/cli-tests/compression/levels.sh.stderr.exact

index 4837790ce5d9d7ce77447c41eb239701fec5208c..47ac2029f7a553401ec026efffd3c781aa6e2b7c 100755 (executable)
@@ -10,11 +10,9 @@ zstd --fast=10 file -o file-f10.zst
 zstd --fast=1 file -o file-f1.zst
 zstd -1 file -o file-1.zst
 zstd -19 file -o file-19.zst
-zstd -22 --ultra file -o file-22.zst
 
-zstd -t file-f10.zst file-f1.zst file-1.zst file-19.zst file-22.zst
+zstd -t file-f10.zst file-f1.zst file-1.zst file-19.zst
 
-cmp_size -ne file-19.zst file-22.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 cb00433e6e16e8bc09bee21adebfb1bbaca39c83..5664f854b19bb5179eb9238598c2867b4d7fc18b 100644 (file)
@@ -6,11 +6,9 @@ zstd --fast=10 file -o file-f10.zst
 zstd --fast=1 file -o file-f1.zst
 zstd -1 file -o file-1.zst
 zstd -19 file -o file-19.zst
-zstd -22 --ultra file -o file-22.zst
 
-zstd -t file-f10.zst file-f1.zst file-1.zst file-19.zst file-22.zst
+zstd -t file-f10.zst file-f1.zst file-1.zst file-19.zst
 
-cmp_size -ne file-19.zst file-22.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