parallelizes ctest and build in regression

This commit is contained in:
2026-03-31 22:52:50 +02:00
parent 856b5f9d32
commit 8dfc5ab688

6
Jenkinsfile vendored
View File

@@ -15,12 +15,12 @@ def runOneRegression(String suite, String preset, String simulatorPath) {
test -x "${simulatorPath}" test -x "${simulatorPath}"
cmake --fresh --preset "${preset}" \\ cmake --fresh --preset "${preset}" \\
-DTHREADX_TEST_SIMULATOR="${simulatorPath}" -DTHREADX_TEST_SIMULATOR="${simulatorPath}"
cmake --build --preset "${preset}" cmake --build --preset "${preset}" --parallel "\$(nproc)"
ctest \\ ctest \\
--test-dir "${buildDir}" \\ --test-dir "${buildDir}" \\
--output-on-failure \\ --output-on-failure \\
--output-junit "${buildDir}/ctest-results.xml" \\ --output-junit "${buildDir}/ctest-results.xml" \\
--parallel "1" --parallel "4"
""" """
} }
} }
@@ -134,7 +134,7 @@ node {
throw err throw err
} finally { } finally {
junit allowEmptyResults: true, testResults: 'build/*/test/*/ctest-results.xml' junit allowEmptyResults: true, testResults: 'build/*/test/*/ctest-results.xml'
archiveArtifacts artifacts: 'build/*/test/*/*.map,build/*/test/*/*.dis,build/*/test/*/Testing/**', allowEmptyArchive: true archiveArtifacts artifacts: 'build/*/test/*/Testing/**', allowEmptyArchive: true
if (currentBuild.currentResult == 'SUCCESS') { if (currentBuild.currentResult == 'SUCCESS') {
rocketSend ":thumbsup: ThreadX regression run passed, results at ${env.RUN_DISPLAY_URL} " rocketSend ":thumbsup: ThreadX regression run passed, results at ${env.RUN_DISPLAY_URL} "