]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
faster cygwin test 2109/head
authorYann Collet <cyan@fb.com>
Tue, 5 May 2020 21:08:35 +0000 (14:08 -0700)
committerYann Collet <cyan@fb.com>
Tue, 5 May 2020 21:08:35 +0000 (14:08 -0700)
The cygwin test on Appveyor is way too long (>30 mn).
The main issue is the very long zstreamtest, because no time out has been programmed.
Ensures that both fuzzer and zstreamtest receive a 30sec slot.
Should reduce cygwin tests duration by -30mn.

appveyor.yml
build/cmake/tests/CMakeLists.txt

index aae626d00f0768db8f82994b5bb7d911ff5a44cc..fdc87376c8c5286ccc1835027a6bbf268baa6fb6 100644 (file)
       C:\cygwin64\bin\bash --login -c "
         set -e;
         cd build/cmake;
-        CFLAGS='-Werror' cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Debug -DZSTD_BUILD_TESTS:BOOL=ON -DZSTD_FUZZER_FLAGS=-T30s .;
+        CFLAGS='-Werror' cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Debug -DZSTD_BUILD_TESTS:BOOL=ON -DZSTD_FUZZER_FLAGS=-T30s -DZSTD_ZSTREAM_FLAGS=-T30s .;
         make -j4;
         ctest -V -L Medium;
       "
index 78cf327077348b3eae408372ecb1e9040d145033..95d60f5f3efa350d940315f059a41564afde3bf7 100644 (file)
@@ -70,7 +70,7 @@ AddTestFlagsOption(ZSTD_FUZZER_FLAGS "$ENV{FUZZERTEST} $ENV{FUZZER_FLAGS}"
 add_test(NAME fuzzer COMMAND fuzzer ${ZSTD_FUZZER_FLAGS})
 # Disable the timeout since the run time is too long for the default timeout of
 # 1500 seconds and varies considerably between low-end and high-end CPUs.
-set_tests_properties(fuzzer PROPERTIES TIMEOUT 0)
+set_tests_properties(fuzzer PROPERTIES TIMEOUT 0)
 
 #
 # zstreamtest