diff options
| author | hathach <[email protected]> | 2022-07-26 22:55:47 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-07-26 23:14:27 +0700 |
| commit | 95c0262cd68edbafeb5b8154cf7693d63c26c07f (patch) | |
| tree | bcc2c2988392b67e70b8b1363e040c19ff63b93d /.github/workflows | |
| parent | d15a86bc69a31fd0637661f44b6a7d53b80a5cad (diff) | |
update test
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/test_hardware.yml | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/.github/workflows/test_hardware.yml b/.github/workflows/test_hardware.yml index 923cd4f0a..93440754e 100644 --- a/.github/workflows/test_hardware.yml +++ b/.github/workflows/test_hardware.yml @@ -5,6 +5,7 @@ on: # Hardware in the loop (HIL) # Current self-hosted instance is running on an RPI4 with # - pico + pico-probe connected via USB +# - pico-probe is /dev/ttyACM0 jobs: hw-test: @@ -26,13 +27,19 @@ jobs: workflow: build_arm.yml name: rp2040 - - name: Flash cdc_msc - run: openocd -f "interface/picoprobe.cfg" -f "target/rp2040.cfg" -c "program cdc_msc.elf verify reset exit" - - - name: Test + - name: Test cdc_dual_ports + env: + example: cdc_dual_ports run: | + openocd -f "interface/picoprobe.cfg" -f "target/rp2040.cfg" -c "program ${{ env.example }}.elf verify reset exit" + test -e /dev/ttyACM1 + test -e /dev/ttyACM2 + + - name: Test cdc_msc + env: + example: cdc_dual_ports + run: | + openocd -f "interface/picoprobe.cfg" -f "target/rp2040.cfg" -c "program ${{ env.example }}.elf verify reset exit" test -e /dev/ttyACM1 test -e /media/pi/TinyUSB\ MSC/README.TXT cat /media/pi/TinyUSB\ MSC/README.TXT - # failed on purpose - test -e /dev/ttyACM2 |
