mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-25 23:38:06 +00:00
update test
This commit is contained in:
parent
d15a86bc69
commit
95c0262cd6
19
.github/workflows/test_hardware.yml
vendored
19
.github/workflows/test_hardware.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user