From: Yann Collet Date: Thu, 14 Dec 2017 21:32:24 +0000 (-0800) Subject: added test on small file X-Git-Tag: v1.3.3^2~7^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0e0985d38d05a9a28b8b94a9f9ece8120c146a8;p=thirdparty%2Fzstd.git added test on small file on top of test on small stream --- diff --git a/tests/playTests.sh b/tests/playTests.sh index c48148fa2..c93c58fe8 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -127,7 +127,9 @@ fi $ECHO "test : null-length file roundtrip" $ECHO -n '' | $ZSTD - --stdout | $ZSTD -d --stdout $ECHO "test : ensure small file doesn't add 3-bytes null block" -./datagen -g1 | $ZSTD | wc -c | grep "14" +./datagen -g1 > tmp1 +$ZSTD tmp1 -c | wc -c | grep "14" +$ZSTD < tmp1 | wc -c | grep "14" $ECHO "test : decompress file with wrong suffix (must fail)" $ZSTD -d tmpCompressed && die "wrong suffix error not detected!" $ZSTD -df tmp && die "should have refused : wrong extension"