]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
adding test for long mode trigger
authorBimba Shrestha <bimbashrestha@fb.com>
Wed, 22 Apr 2020 02:04:55 +0000 (21:04 -0500)
committerBimba Shrestha <bimbashrestha@fb.com>
Wed, 22 Apr 2020 02:09:49 +0000 (21:09 -0500)
tests/playTests.sh

index db82c9a0c9f597ae1d5ba53e8963a1ad456ec4ce..0276f58e1feff22b7b02d053277f2a1c445922d8 100755 (executable)
@@ -1270,11 +1270,19 @@ rm -rf tmp_*
 println "\n===> patch-from recursive tests"
 
 mkdir tmp_dir
-datagen > tmp_dir/tmp1 
+datagen > tmp_dir/tmp1
 datagen > tmp_dir/tmp2
 datagen > tmp_dict
 zstd --patch-from=tmp_dict -r tmp_dir && die
-rm -rf tmp* 
+rm -rf tmp*
+
+println "\n===> patch-from long mode trigger larger file test"
+
+datagen -g5000000 > tmp_dict
+datagen -g5000000 > tmp_patch
+zstd -15 --patch-from=tmp_dict tmp_patch &> tmp_out
+grep "long mode automaticaly triggered" tmp_out
+rm -rf tmp*
 
 println "\n===>   large files tests "