diff options
| author | Ha Thach <[email protected]> | 2026-02-24 11:52:00 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-24 11:52:00 +0700 |
| commit | 2e5d5665f3b07dd97b0c34758402be0fbeb1973d (patch) | |
| tree | 9fa7865ed224ad8658dbfd405ebdd930217127e4 /AGENTS.md | |
| parent | dc072da5cc6a6b326a832f104c0a395d119ce35c (diff) | |
| parent | f179b2957dbe00ad937eb50ada42dc32233a7a93 (diff) | |
Merge pull request #3509 from hathach/pr3506-followup
follow up to PR3506
Diffstat (limited to 'AGENTS.md')
| -rw-r--r-- | AGENTS.md | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -101,9 +101,15 @@ make BOARD=raspberry_pi_pico all ## Hardware-in-the-Loop (HIL) Testing +- `-B examples` means `examples` is the parent folder that contains multi-board build outputs such as `examples/cmake-build-BOARD_NAME/...` +- Select config file before running HIL tests: + - if GitHub Actions self-hosted runner service is running, use `tinyusb.json` + - otherwise use `local.json` + - example: + `HIL_CONFIG=$( (systemctl list-units --type=service --state=running 2>/dev/null; systemctl --user list-units --type=service --state=running 2>/dev/null) | grep -q 'actions\.runner' && echo tinyusb.json || echo local.json )` - Run tests on actual hardware, one of following ways: - - test a specific board `python test/hil/hil_test.py -b BOARD_NAME -B examples local.json` - - test all boards in config `python test/hil/hil_test.py -B examples local.json` + - test a specific board `python test/hil/hil_test.py -b BOARD_NAME -B examples $HIL_CONFIG` + - test all boards in config `python test/hil/hil_test.py -B examples $HIL_CONFIG` - In case of error, enabled verbose mode with `-v` flag for detailed logs. Also try to observe script output, and try to modify hil_test.py (temporarily) to add more debug prints to pinpoint the issue. - Requires pre-built (all) examples for target boards (see Build Examples section 2) |
