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:
@ -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 "
|
||||
|
||||
|
Reference in New Issue
Block a user