From: Bimba Shrestha Date: Wed, 22 Apr 2020 02:04:55 +0000 (-0500) Subject: adding test for long mode trigger X-Git-Tag: v1.4.5^2~59^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b107188b869e59a995dd4637aedaea5d07514e1;p=thirdparty%2Fzstd.git adding test for long mode trigger --- diff --git a/tests/playTests.sh b/tests/playTests.sh index db82c9a0c..0276f58e1 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -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 "