adding test for long mode trigger

This commit is contained in:
Bimba Shrestha
2020-04-21 21:09:49 -05:00
parent 38a6d2a8f2
commit 0b107188b8
+10 -2
View File
@@ -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 "