Skip to content

Commit b534bef

Browse files
author
Bimba Shrestha
committed
adding --patch-from --stream-size test
1 parent b067108 commit b534bef

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/playTests.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,6 +1304,13 @@ datagen -g5000000 > tmp_patch
13041304
zstd -15 --patch-from=tmp_dict tmp_patch 2>&1 | grep "long mode automatically triggered"
13051305
rm -rf tmp*
13061306

1307+
println "\n===> patch-from --stream-size test"
1308+
datagen -g1000 -P50 > tmp_dict
1309+
datagen -g1000 -P10 > tmp_patch
1310+
cat tmp_patch | zstd -f --patch-from=tmp_dict -c -o tmp_patch_diff && die
1311+
cat tmp_patch | zstd -f --patch-from=tmp_dict --stream-size=1000 -c -o tmp_patch_diff
1312+
rm -rf tmp*
1313+
13071314
println "\n===> large files tests "
13081315

13091316
roundTripTest -g270000000 1

0 commit comments

Comments
 (0)