From: Bimba Shrestha Date: Thu, 18 Jun 2020 16:36:36 +0000 (-0700) Subject: adding --patch-from --stream-size test X-Git-Tag: v1.4.7~136^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de48f35306b72fd7482b30c457a608d8e9d0651d;p=thirdparty%2Fzstd.git adding --patch-from --stream-size test --- diff --git a/tests/playTests.sh b/tests/playTests.sh index 7a2689cd3..c3168d53c 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -1304,6 +1304,13 @@ datagen -g5000000 > tmp_patch zstd -15 --patch-from=tmp_dict tmp_patch 2>&1 | grep "long mode automatically triggered" rm -rf tmp* +println "\n===> patch-from --stream-size test" +datagen -g1000 -P50 > tmp_dict +datagen -g1000 -P10 > tmp_patch +cat tmp_patch | zstd -f --patch-from=tmp_dict -c -o tmp_patch_diff && die +cat tmp_patch | zstd -f --patch-from=tmp_dict --stream-size=1000 -c -o tmp_patch_diff +rm -rf tmp* + println "\n===> large files tests " roundTripTest -g270000000 1