CI: parallelize integration test

I'm not sure whether 'make inttest' should do this or not
This commit is contained in:
Alexey Sokolov
2025-04-21 00:52:29 +01:00
parent b642d92ce7
commit b1a03fa1cc
3 changed files with 10 additions and 3 deletions
+3 -1
View File
@@ -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"
+4 -1
View File
@@ -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
Vendored
+3 -1
View File
@@ -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'