From fae64b3390899599293af97bb583d27abfa759f5 Mon Sep 17 00:00:00 2001 From: Bimba Shrestha Date: Mon, 9 Mar 2020 14:44:38 -0500 Subject: [PATCH] Adding test for --[no-]content-size --- tests/playTests.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/playTests.sh b/tests/playTests.sh index c7605cc4..c020127f 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -469,6 +469,19 @@ ls tmp* > tmpList $ZSTD -f tmp1 --filelist=tmpList --filelist=tmpList tmp2 tmp3 # can trigger an overflow of internal file list rm -rf tmp* +println "\n===> --[no-]content-size tests" + +$DATAGEN > tmp_contentsize +$ZSTD -f tmp_contentsize +$ZSTD -lv tmp_contentsize.zst | grep "Decompressed Size:" +$ZSTD -f --no-content-size tmp_contentsize +$ZSTD -lv tmp_contentsize.zst | grep "Decompressed Size:" && die +$ZSTD -f --content-size tmp_contentsize +$ZSTD -lv tmp_contentsize.zst | grep "Decompressed Size:" +$ZSTD -f --content-size --no-content-size tmp_contentsize +$ZSTD -lv tmp_contentsize.zst | grep "Decompressed Size:" && die +rm -rf tmp* + println "test : show-default-cparams regular" $DATAGEN > tmp $ZSTD --show-default-cparams -f tmp