]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
[CI][cmake] Disable --test-large-data and shorten fuzzing time to 2 mins 2411/head
authorNick Terrell <terrelln@fb.com>
Thu, 10 Dec 2020 21:33:34 +0000 (13:33 -0800)
committerNick Terrell <terrelln@fb.com>
Thu, 10 Dec 2020 21:33:34 +0000 (13:33 -0800)
.github/workflows/generic-dev.yml
appveyor.yml
build/cmake/tests/CMakeLists.txt

index 6b127aa7a55b95e3929f380c5d021da6745873c7..bb88de57ca5df8ff64c67711a036f015d0cdc627 100644 (file)
@@ -90,10 +90,10 @@ jobs:
     - uses: actions/checkout@v2
     - name: cmake build and test check
       run: |
-        make cmakebuild
+        FUZZERTEST=-T1mn ZSTREAM_TESTTIME=-T1mn make cmakebuild
         cp -r ./ "../zstd source"
         cd "../zstd source"
-        make cmakebuild
+        FUZZERTEST=-T1mn ZSTREAM_TESTTIME=-T1mn make cmakebuild
 
   gcc-8-asan-ubsan-fuzz:
     runs-on: ubuntu-latest
index 6b5b976765d8ea236fb59c024b26de43df659f13..169c66bd61debc68f5b0e5fd76ac61455664ce27 100644 (file)
   - if [%TEST%]==[cmake] (
       mkdir build\cmake\build &&
       cd build\cmake\build &&
+      SET FUZZERTEST=-T2mn &&
+      SET ZSTREAM_TESTTIME=-T2mn &&
       cmake -G "Visual Studio 14 2015 Win64" .. &&
       cd ..\..\.. &&
       make clean
index 9bc9ec4113b54731d6fe01378fa2134489867903..34eca9109a09d4e11e41c6ad822e45e06ab7859d 100644 (file)
@@ -84,7 +84,7 @@ add_test(NAME zstreamtest COMMAND zstreamtest ${ZSTD_ZSTREAM_FLAGS})
 #
 # playTests.sh
 #
-AddTestFlagsOption(ZSTD_PLAYTESTS_FLAGS "--test-large-data"
+AddTestFlagsOption(ZSTD_PLAYTESTS_FLAGS "$ENV{PLAYTESTS_FLAGS}"
     "Semicolon-separated list of flags to pass to the playTests.sh test")
 add_test(NAME playTests COMMAND sh -c "\"${TESTS_DIR}/playTests.sh\" ${ZSTD_PLAYTESTS_FLAGS}")
 if (ZSTD_BUILD_PROGRAMS)