Run Hardware-in-the-Loop (HIL) tests on physical boards.
Determine the HIL config file:
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 )
Default is local.json for local development.
Parse $ARGUMENTS:
-b BOARD_NAME, run for that specific board only.-b, run for all boards in the config.-v for verbose) directly to the command.Run the HIL test from the repo root directory:
python test/hil/hil_test.py -b BOARD_NAME -B examples $HIL_CONFIG $EXTRA_ARGSpython test/hil/hil_test.py -B examples $HIL_CONFIG $EXTRA_ARGSUse a timeout of at least 20 minutes (600000ms). HIL tests take 2-5 minutes. NEVER cancel early.
After the test completes:
-v flag for verbose output to help debug.