added cli test veryfying bug #944

this test fails on v1.3.2
dev
Yann Collet 2017-12-12 19:47:38 -08:00
parent e9dc0ab884
commit 98ccc115ed
1 changed files with 2 additions and 0 deletions

View File

@ -297,6 +297,8 @@ cp $TESTFILE tmp
$ZSTD -f tmp -D tmpDict
$ZSTD -d tmp.zst -D tmpDict -fo result
$DIFF $TESTFILE result
$ECHO "- Test dictionary compression with multithreading "
./datagen -g5M | $ZSTD -T2 -D tmpDict | $ZSTD -t -D tmpDict # fails with v1.3.2
$ECHO "- Create second (different) dictionary "
$ZSTD --train *.c ../programs/*.c ../programs/*.h -o tmpDictC
$ZSTD -d tmp.zst -D tmpDictC -fo result && die "wrong dictionary not detected!"