[nexus] support ctest labels to categorize tests (#12367)

Updates the `ot_nexus_test` macro to accept a list of labels for each
test case. This allows for categorizing tests and executing specific
subsets using `ctest -L`.

The tests are now assigned labels such as `core`, `cert`, and `trel`.
The `core` label is used for tests that verify OpenThread core logic
and behavior, distinguishing them from `cert` tests which cover
certification scenarios.

The GitHub workflow is updated to utilize `ctest -L` for running the
tests, replacing the previous `ninja test` command.
This commit is contained in:
Abtin Keshavarzian
2026-02-09 11:37:37 -08:00
committed by GitHub
parent 62a2d794d4
commit ebba0b39a5
2 changed files with 37 additions and 28 deletions
+2 -2
View File
@@ -227,10 +227,10 @@ jobs:
- name: Build & Run
run: |
./tests/nexus/build.sh
ninja test
ctest -L core --output-on-failure
git clean -dfx
./tests/nexus/build.sh trel
./tests/nexus/nexus_trel
ctest -L trel --output-on-failure
upload-coverage:
needs: