From: Sean Purcell Date: Thu, 16 Mar 2017 23:25:19 +0000 (-0700) Subject: Add tests for compressed data on console X-Git-Tag: v1.2.0^2~103^2^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d973071e907ba2b9f99db6ea14c625a1307c1ac9;p=thirdparty%2Fzstd.git Add tests for compressed data on console --- diff --git a/tests/playTests.sh b/tests/playTests.sh index c493fed55..c584fe560 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -72,6 +72,10 @@ cp tmp tmp2 $ZSTD tmp2 -fo && die "-o must be followed by filename " $ECHO "test : implied stdout when input is stdin" $ECHO bob | $ZSTD | $ZSTD -d +$ECHO "test : compressed data to terminal" +$ECHO bob | $ZSTD && die "should have refused : compressed data to terminal" +$ECHO "test : compressed data from terminal (a hang here is a test fail, zstd is wrongly waiting on data from terminal)" +$ZSTD -d > $INTOVOID && die "should have refused : compressed data from terminal" $ECHO "test : null-length file roundtrip" $ECHO -n '' | $ZSTD - --stdout | $ZSTD -d --stdout $ECHO "test : decompress file with wrong suffix (must fail)"