Integrate verbose mode tests into playTests.sh
This commit is contained in:
@@ -753,6 +753,13 @@ datagen -g257000 > tmp_files/tmp3
|
|||||||
zstd --show-default-cparams -f -r tmp_files
|
zstd --show-default-cparams -f -r tmp_files
|
||||||
rm -rf tmp*
|
rm -rf tmp*
|
||||||
|
|
||||||
|
println "test : show compression parameters in verbose mode"
|
||||||
|
datagen > tmp
|
||||||
|
zstd -vv tmp 2>&1 | \
|
||||||
|
grep -q -E -- "--zstd=wlog=[[:digit:]]+,clog=[[:digit:]]+,hlog=[[:digit:]]+,\
|
||||||
|
slog=[[:digit:]]+,mml=[[:digit:]]+,tlen=[[:digit:]]+,strat=[[:digit:]]+"
|
||||||
|
rm -rf tmp*
|
||||||
|
|
||||||
println "\n===> Advanced compression parameters "
|
println "\n===> Advanced compression parameters "
|
||||||
println "Hello world!" | zstd --zstd=windowLog=21, - -o tmp.zst && die "wrong parameters not detected!"
|
println "Hello world!" | zstd --zstd=windowLog=21, - -o tmp.zst && die "wrong parameters not detected!"
|
||||||
println "Hello world!" | zstd --zstd=windowLo=21 - -o tmp.zst && die "wrong parameters not detected!"
|
println "Hello world!" | zstd --zstd=windowLo=21 - -o tmp.zst && die "wrong parameters not detected!"
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e -u -o pipefail
|
|
||||||
|
|
||||||
make -j -C .. CFLAGS=-O1 zstd
|
|
||||||
empty_file=$(mktemp)
|
|
||||||
trap 'rm -f $empty_file' EXIT
|
|
||||||
../zstd -vv "$empty_file" 2>&1 | \
|
|
||||||
grep -q -E -- "--zstd=wlog=[[:digit:]]+,clog=[[:digit:]]+,hlog=[[:digit:]]+,\
|
|
||||||
slog=[[:digit:]]+,mml=[[:digit:]]+,tlen=[[:digit:]]+,strat=[[:digit:]]+"
|
|
||||||
Reference in New Issue
Block a user