| name | hardware-in-the-loop-test |
| description | Validate firmware behavior on real hardware rather than compilation-only checks. Use when running physical acceptance tests, confirming boot markers, validating sensor output, or checking runtime timing/telemetry. |
Hardware-in-the-Loop Test
Purpose
Use this skill to validate firmware behavior on a real device, not just through compilation.
Safety Rules
- Ask before flashing.
- Do not assume physical wiring is safe.
- Do not activate motors, heaters, lasers, relays, pumps, or high-power outputs without explicit user approval.
- Keep tests bounded by timeout.
- Save logs and artifacts.
Workflow
- Define expected behavior.
- Build firmware.
- Ask before flashing.
- Flash firmware.
- Monitor device output.
- Check expected serial strings, timing, or telemetry.
- Mark pass/fail.
- Save build logs, flash logs, and serial logs.
- Summarize results.
Example Test Definition
name: esp32_boot_marker
board: esp32dev
expected:
serial_contains: BOOT_OK
timeout_seconds: 15