From 43914f6a206989432d68bb6abe336e1a662e913d Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Fri, 13 Oct 2017 23:47:01 -0700 Subject: [PATCH] add test for presence of decompressed size field in header previous test was "display" only, it wouldn't trigger an error in case of missing header. --- tests/playTests.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/playTests.sh b/tests/playTests.sh index bc021648..013182ae 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -600,7 +600,7 @@ $ECHO "\n**** zstd --list/-l single frame tests ****" ./datagen > tmp3 $ZSTD tmp* $ZSTD -l *.zst -$ZSTD -lv *.zst +$ZSTD -lv *.zst | grep "Decompressed Size:" # check that decompressed size is present in header $ZSTD --list *.zst $ZSTD --list -v *.zst @@ -609,8 +609,6 @@ cat tmp1.zst tmp2.zst > tmp12.zst cat tmp12.zst tmp3.zst > tmp123.zst $ZSTD -l *.zst $ZSTD -lv *.zst -$ZSTD --list *.zst -$ZSTD --list -v *.zst $ECHO "\n**** zstd --list/-l error detection tests ****" ! $ZSTD -l tmp1 tmp1.zst @@ -627,9 +625,9 @@ $ZSTD -lv tmp5.zst ! $ZSTD -lv tmp5* $ECHO "\n**** zstd --list/-l test with no content size field ****" -./datagen -g1MB | $ZSTD > tmp6.zst +./datagen -g513K | $ZSTD > tmp6.zst $ZSTD -l tmp6.zst -$ZSTD -lv tmp6.zst +! $ZSTD -lv tmp6.zst | grep "Decompressed Size:" # must NOT be present in header $ECHO "\n**** zstd --list/-l test with no checksum ****" $ZSTD -f --no-check tmp1