Skip to content

Commit c79fb4d

Browse files
committed
update levels.sh test
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
1 parent ebba9ff commit c79fb4d

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

tests/cli-tests/compression/levels.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ zstd --fast=10 file -o file-f10.zst
1010
zstd --fast=1 file -o file-f1.zst
1111
zstd -1 file -o file-1.zst
1212
zstd -19 file -o file-19.zst
13-
zstd -22 --ultra file -o file-22.zst
1413

15-
zstd -t file-f10.zst file-f1.zst file-1.zst file-19.zst file-22.zst
14+
zstd -t file-f10.zst file-f1.zst file-1.zst file-19.zst
1615

17-
cmp_size -ne file-19.zst file-22.zst
1816
cmp_size -lt file-19.zst file-1.zst
1917
cmp_size -lt file-1.zst file-f1.zst
2018
cmp_size -lt file-f1.zst file-f10.zst

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ zstd --fast=10 file -o file-f10.zst
66
zstd --fast=1 file -o file-f1.zst
77
zstd -1 file -o file-1.zst
88
zstd -19 file -o file-19.zst
9-
zstd -22 --ultra file -o file-22.zst
109

11-
zstd -t file-f10.zst file-f1.zst file-1.zst file-19.zst file-22.zst
10+
zstd -t file-f10.zst file-f1.zst file-1.zst file-19.zst
1211

13-
cmp_size -ne file-19.zst file-22.zst
1412
cmp_size -lt file-19.zst file-1.zst
1513
cmp_size -lt file-1.zst file-f1.zst
1614
cmp_size -lt file-f1.zst file-f10.zst

0 commit comments

Comments
 (0)