mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-28 16:20:26 +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)
|
# Hardware in the loop (HIL)
|
||||||
# Current self-hosted instance is running on an RPI4 with
|
# Current self-hosted instance is running on an RPI4 with
|
||||||
# - pico + pico-probe connected via USB
|
# - pico + pico-probe connected via USB
|
||||||
|
# - pico-probe is /dev/ttyACM0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
hw-test:
|
hw-test:
|
||||||
@ -26,13 +27,19 @@ jobs:
|
|||||||
workflow: build_arm.yml
|
workflow: build_arm.yml
|
||||||
name: rp2040
|
name: rp2040
|
||||||
|
|
||||||
- name: Flash cdc_msc
|
- name: Test cdc_dual_ports
|
||||||
run: openocd -f "interface/picoprobe.cfg" -f "target/rp2040.cfg" -c "program cdc_msc.elf verify reset exit"
|
env:
|
||||||
|
example: cdc_dual_ports
|
||||||
- name: Test
|
|
||||||
run: |
|
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 /dev/ttyACM1
|
||||||
test -e /media/pi/TinyUSB\ MSC/README.TXT
|
test -e /media/pi/TinyUSB\ MSC/README.TXT
|
||||||
cat /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