Add CLI test to validate error

dev
shakeelrao 2019-03-24 00:47:13 -07:00
parent 5333e41ab3
commit 2b4491d81a
1 changed files with 2 additions and 0 deletions

View File

@ -410,6 +410,8 @@ $ECHO "- Create first dictionary "
TESTFILE=../programs/zstdcli.c
$ZSTD --train *.c ../programs/*.c -o tmpDict
cp $TESTFILE tmp
$ECHO "- Compress dictionary with itself"
$ZSTD -f tmpDict -D tmpDict | grep "cannot use" && die "expected error : cannot compress dictionary with itself"
$ECHO "- Dictionary compression roundtrip"
$ZSTD -f tmp -D tmpDict
$ZSTD -d tmp.zst -D tmpDict -fo result