From: Bimba Shrestha Date: Mon, 9 Sep 2019 18:54:43 +0000 (-0700) Subject: Testing first block decompression cli X-Git-Tag: v1.4.4~1^2~60^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b25ab2202fec7db59ccab8d73dc1a5fc1d679c3;p=thirdparty%2Fzstd.git Testing first block decompression cli --- diff --git a/tests/files/rle-first-block.zst b/tests/files/rle-first-block.zst new file mode 100644 index 000000000..fd067edd7 Binary files /dev/null and b/tests/files/rle-first-block.zst differ diff --git a/tests/golden/huffman-compressed-larger b/tests/golden/huffman-compressed-larger new file mode 100644 index 000000000..f594f1ae9 Binary files /dev/null and b/tests/golden/huffman-compressed-larger differ diff --git a/tests/playTests.sh b/tests/playTests.sh index 69387321f..34f4dfcc2 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -242,6 +242,11 @@ $ZSTD -f tmp && die "attempt to compress a non existing file" test -f tmp.zst # destination file should still be present rm tmp* +println "\n===> decompression only tests " +head -c 1M /dev/zero > tmp +$ZSTD -d -o tmp1 "$TESTDIR/files/rle-first-block.zst" +$DIFF -s tmp1 tmp +rm tmp* println "test : compress multiple files" println hello > tmp1 @@ -583,8 +588,8 @@ $ZSTD -t tmpSplit.* && die "bad file not detected !" println "\n===> golden files tests " -$ZSTD -t -r "$TESTDIR/files" -$ZSTD -c -r "$TESTDIR/files" | $ZSTD -t +$ZSTD -t -r "$TESTDIR/golden" +$ZSTD -c -r "$TESTDIR/golden" | $ZSTD -t println "\n===> benchmark mode tests "