ensure that benchmark mode can only be invoked with zstd format
fix #3463
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