From: Bimba Shrestha Date: Mon, 9 Mar 2020 19:44:38 +0000 (-0500) Subject: Adding test for --[no-]content-size X-Git-Tag: v1.4.5^2~79^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fae64b3390899599293af97bb583d27abfa759f5;p=thirdparty%2Fzstd.git Adding test for --[no-]content-size --- diff --git a/tests/playTests.sh b/tests/playTests.sh index c7605cc48..c020127fe 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