Integrate verbose mode tests into playTests.sh

This commit is contained in:
Kevin Svetlitski
2021-11-12 14:10:21 -08:00
parent 7fbd126e08
commit 9b28c26cbf
2 changed files with 7 additions and 9 deletions
+7
View File
@@ -753,6 +753,13 @@ datagen -g257000 > tmp_files/tmp3
zstd --show-default-cparams -f -r tmp_files
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 "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!"
-9
View File
@@ -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:]]+"