parallelizes ctest and build in regression
This commit is contained in:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -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} "
|
||||||
|
|||||||
Reference in New Issue
Block a user