mirror of
https://github.com/facebook/zstd.git
synced 2025-07-29 11:21:22 +03:00
Add ZSTD_LIB_EXCLUDE_COMPRESSORS_DFAST_AND_UP Build Variable
This commit is contained in:
@ -1708,8 +1708,14 @@ zstd --patch-from=tmp_dict -r tmp_dir && die
|
||||
rm -rf tmp*
|
||||
|
||||
println "\n===> patch-from long mode trigger larger file test"
|
||||
datagen -g5000000 > tmp_dict
|
||||
datagen -g5000000 > tmp_patch
|
||||
if [ "$ZSTD_LIB_EXCLUDE_COMPRESSORS_DFAST_AND_UP" -eq "1" ]; then
|
||||
# if binary tree strategies are excluded, the threshold is different
|
||||
datagen -g10000000 > tmp_dict
|
||||
datagen -g10000000 > tmp_patch
|
||||
else
|
||||
datagen -g5000000 > tmp_dict
|
||||
datagen -g5000000 > tmp_patch
|
||||
fi
|
||||
zstd -15 --patch-from=tmp_dict tmp_patch 2>&1 | grep "long mode automatically triggered"
|
||||
rm -rf tmp*
|
||||
|
||||
|
Reference in New Issue
Block a user