diff --git a/.appveyor.yml b/.appveyor.yml index 6df0cd1d..80ecfa06 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -27,4 +27,6 @@ build_script: - c:\cygwin-root\bin\sh -lc "rebase -s -v $(cat /tmp/files-to-rebase)" test_script: - c:\cygwin-root\bin\sh -lc "cd $APPVEYOR_BUILD_FOLDER/build; make VERBOSE=1 unittest < /dev/null" - - c:\cygwin-root\bin\sh -lc "cd $APPVEYOR_BUILD_FOLDER/build; env ZNC_QT_VER=5 make VERBOSE=1 inttest < /dev/null" + - c:\cygwin-root\bin\sh -lc "cd $APPVEYOR_BUILD_FOLDER/build; env ZNC_QT_VER=5 make VERBOSE=1 inttest_bin < /dev/null" + - c:\cygwin-root\bin\sh -lc "cd $APPVEYOR_BUILD_FOLDER/build; git clone --depth=1 https://github.com/google/gtest-parallel" + - c:\cygwin-root\bin\sh -lc "cd $APPVEYOR_BUILD_FOLDER/build; gtest-parallel/gtest-parallel test/integration/inttest" diff --git a/.github/build.sh b/.github/build.sh index 33a56ed3..e89e21e4 100644 --- a/.github/build.sh +++ b/.github/build.sh @@ -31,8 +31,11 @@ env LLVM_PROFILE_FILE="$PWD/unittest.profraw" make VERBOSE=1 unittest sudo make install /usr/local/bin/znc --version +git clone --depth=1 https://github.com/google/gtest-parallel +make VERBOSE=1 inttest_bin + # TODO: use DEVEL_COVER_OPTIONS for https://metacpan.org/pod/Devel::Cover -env LLVM_PROFILE_FILE="$PWD/inttest.profraw" ZNC_MODPERL_COVERAGE_OPTS="-db,$PWD/cover_db" PYTHONWARNINGS=error make VERBOSE=1 inttest +env LLVM_PROFILE_FILE="$PWD/inttest.profraw" ZNC_MODPERL_COVERAGE_OPTS="-db,$PWD/cover_db" PYTHONWARNINGS=error gtest-parallel/gtest-parallel test/integration/inttest ls -lRa ~/perl5/bin/cover --no-gcov --report=clover diff --git a/Jenkinsfile b/Jenkinsfile index 1d8f594b..f2eba994 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,7 +26,9 @@ timestamps { stage('Integration test') { withEnv(['GTEST_OUTPUT=xml:integration-test.xml']) { sh 'make install' - sh 'make inttest' + sh 'make inttest_bin' + sh 'git clone --depth=1 https://github.com/google/gtest-parallel' + sh 'gtest-parallel/gtest-parallel test/integration/inttest' } } junit '**/*test.xml'