1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-29 11:21:22 +03:00

update test for 32-bit mode

--max doesn't work in 32-bit mode, due to address space limitation
This commit is contained in:
Yann Collet
2025-02-09 23:02:14 -08:00
parent f86024ccd2
commit 1603cbe83e
2 changed files with 18 additions and 2 deletions

View File

@ -5,12 +5,20 @@ set -v
datagen > file
# Retrieve the program's version information
version_info=$(zstd -V)
# Compress with various levels and ensure that their sizes are ordered
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
if echo "$version_info" | grep -q '32-bit'; then
# skip --max test: not enough address space
cp file-19.zst file-max.zst
else
zstd --max file -o file-max.zst -q
fi
zstd -t file-f10.zst file-f1.zst file-1.zst file-19.zst file-max.zst

View File

@ -1,12 +1,20 @@
datagen > file
# Retrieve the program's version information
version_info=$(zstd -V)
# Compress with various levels and ensure that their sizes are ordered
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
if echo "$version_info" | grep -q '32-bit'; then
# skip --max test: not enough address space
cp file-19.zst file-max.zst
else
zstd --max file -o file-max.zst -q
fi
zstd -t file-f10.zst file-f1.zst file-1.zst file-19.zst file-max.zst
5 files decompressed : 327685 bytes total