diff --git a/Jenkinsfile b/Jenkinsfile index 708af3d..07ebb7b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,7 +6,7 @@ def threadxTestSimulator = '/usr/local/bin/riscv-vp' def runOneRegression(String suite, String preset, String simulatorPath) { def suiteDir = "test/${suite}" def buildDir = "../../build/${preset}/test/${suite}" - def testFilter = preset.startsWith('Context') ? "-R '^vp_smp_context\$'" : '' + def testSelection = preset.startsWith('Context') ? "--preset \"${preset}\"" : "--test-dir \"${buildDir}\"" stage("${suite}-${preset}") { dir(suiteDir) { @@ -17,11 +17,10 @@ def runOneRegression(String suite, String preset, String simulatorPath) { cmake --fresh --preset "${preset}" \\ -DTHREADX_TEST_SIMULATOR="${simulatorPath}" cmake --build --preset "${preset}" --parallel "\$(nproc)" - ctest \\ - --test-dir "${buildDir}" \\ + ctest ${testSelection} \\ --output-on-failure \\ - --output-junit "${buildDir}/ctest-results.xml" \\ - --parallel "4" ${testFilter} + --output-junit "\$PWD/${buildDir}/ctest-results.xml" \\ + --parallel "4" """ } } diff --git a/README.md b/README.md index 03bc59c..084df52 100644 --- a/README.md +++ b/README.md @@ -37,23 +37,18 @@ cmake --build build/Debug32/test/threadx/ --parallel ctest --test-dir build/Debug32/test/threadx --output-on-failure --parallel 4 ``` -To validate a ThreadX checkout that contains the GNU RISC-V SMP ports, pass its -absolute path as `THREADX_SMP_SOURCE_DIR`. The SMP library, demo, and regression -suite all use that checkout. The two context presets run focused hard-float -tests on a four-hart HERE VP. +For SMP, use `test/smp` and the corresponding `build/Debug32/test/smp` directory +in the same commands. The regular SMP presets exercise integer builds. + +Use `Context32` or `Context64` for a focused hard-float test on four-hart system. ```bash cd test/smp -cmake --preset Context64 \ - -DTHREADX_TEST_SIMULATOR=/opt/riscv-vp/bin/riscv-vp \ - -DTHREADX_SMP_SOURCE_DIR=/path/to/threadx +cmake --preset Context64 -DTHREADX_TEST_SIMULATOR=/opt/riscv-vp/bin/riscv-vp cmake --build --preset Context64 --parallel -ctest --test-dir ../../build/Context64/test/smp -R '^vp_smp_context$' --output-on-failure +ctest --preset Context64 ``` -Use `Context32` for RV32GC. The regular SMP presets run the integer regression -suite. Jenkins runs both suites on the pinned HERE VP image and uses the latest -image as a canary when it differs. ## Demo Applications diff --git a/test/smp/CMakePresets.json b/test/smp/CMakePresets.json index 6854114..064398b 100644 --- a/test/smp/CMakePresets.json +++ b/test/smp/CMakePresets.json @@ -86,5 +86,18 @@ { "name": "MinSizeRel32", "configurePreset": "MinSizeRel32" }, { "name": "Context32", "configurePreset": "Context32", "targets": ["vp_smp_context"] }, { "name": "Context64", "configurePreset": "Context64", "targets": ["vp_smp_context"] } + ], + "testPresets": [ + { + "name": "Context32", + "configurePreset": "Context32", + "filter": { "include": { "name": "^vp_smp_context$" } }, + "output": { "outputOnFailure": true } + }, + { + "name": "Context64", + "inherits": "Context32", + "configurePreset": "Context64" + } ] } diff --git a/third-party/threadx b/third-party/threadx index bc6063e..fa06c6f 160000 --- a/third-party/threadx +++ b/third-party/threadx @@ -1 +1 @@ -Subproject commit bc6063e588893487c7cacd3bc8c2b9eb814fadd9 +Subproject commit fa06c6f137293c98f7a48a927256f5a052be93b8