crosspad_test_run
Build and run the CrossPad PC Catch2 test suite, parse passed/failed counts and errors, and support filtering, test listing, or GUI harness runs through CTest labels.
Instructions
[PC] Build and run the Catch2 test suite of crosspad-pc: configures cmake with BUILD_TESTING=ON, parses the output into passed/failed counts and errors, supports filter and list_only. Pass labels to run the GUI harness instead; those cases live in a second executable that only CTest knows how to launch.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "crosspad_test_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Catch2 test filter (e.g. '[core]', 'PadManager*'). Default '' (empty) runs ALL tests — there is no opt-out for 'no tests'. With `labels` it becomes a regex over CTest entry names instead. | |
| labels | No | CTest labels to run instead of the Catch2 binary. 'gui' = the simulator harness ([gui] cases), which excludes the flaky entries unless 'flaky' is listed too. Default [] = the crosspad_tests binary, as before. | |
| list_only | No | If true, list discovered tests matching `filter` without running them. Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docs | No | ||
| next | No | ||
| error | No | ||
| errors | Yes | ||
| failed | Yes | ||
| labels | No | ||
| notice | No | ||
| passed | Yes | ||
| runner | No | ||
| success | Yes | ||
| test_output | Yes | ||
| tests_found | Yes | ||
| build_output | Yes | ||
| duration_seconds | Yes |