]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
adding --patch-from --stream-size test 2206/head
authorBimba Shrestha <bimbashrestha@fb.com>
Thu, 18 Jun 2020 16:36:36 +0000 (09:36 -0700)
committerBimba Shrestha <bimbashrestha@fb.com>
Thu, 18 Jun 2020 17:28:37 +0000 (10:28 -0700)
tests/playTests.sh

index 7a2689cd3ab811f44f1fbfe5d5861d8e9ed1d664..c3168d53ce14a77eb403ddc7b2e29af0aa2d6fac 100755 (executable)
@@ -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