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

Merge pull request #3470 from facebook/bench_zstd_only

ensure that benchmark mode can only be invoked with zstd format
This commit is contained in:
Yann Collet
2023-01-31 16:22:20 -08:00
committed by GitHub
2 changed files with 30 additions and 14 deletions

View File

@ -1218,6 +1218,12 @@ println "benchmark decompression only"
zstd -f tmp1
zstd -b -d -i0 tmp1.zst
GZIPMODE=1
zstd --format=gzip -V || GZIPMODE=0
if [ $GZIPMODE -eq 1 ]; then
println "benchmark mode is only compatible with zstd"
zstd --format=gzip -b tmp1 && die "-b should be incompatible with gzip format!"
fi
println "\n===> zstd compatibility tests "