From 0b107188b869e59a995dd4637aedaea5d07514e1 Mon Sep 17 00:00:00 2001 From: Bimba Shrestha Date: Tue, 21 Apr 2020 21:04:55 -0500 Subject: [PATCH] adding test for long mode trigger --- tests/playTests.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 "