]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
added test on small file 951/head
authorYann Collet <cyan@fb.com>
Thu, 14 Dec 2017 21:32:24 +0000 (13:32 -0800)
committerYann Collet <cyan@fb.com>
Thu, 14 Dec 2017 21:32:24 +0000 (13:32 -0800)
on top of test on small stream

tests/playTests.sh

index c48148fa295e84d2834fe14c9db6a514f67f6d7f..c93c58fe8d58814d2cac8d16cbaeec7d89fb6747 100755 (executable)
@@ -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"