mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-23 17:42:22 +00:00
more hw test
This commit is contained in:
parent
2d5be43747
commit
e01b437af5
7
.github/workflows/test_hardware.yml
vendored
7
.github/workflows/test_hardware.yml
vendored
@ -33,15 +33,16 @@ jobs:
|
|||||||
touch flash.sh
|
touch flash.sh
|
||||||
chmod +x flash.sh
|
chmod +x flash.sh
|
||||||
echo > flash.sh 'openocd -f "interface/picoprobe.cfg" -f "target/rp2040.cfg" -c "program $1.elf reset exit"'
|
echo > flash.sh 'openocd -f "interface/picoprobe.cfg" -f "target/rp2040.cfg" -c "program $1.elf reset exit"'
|
||||||
echo >> flash.sh '"Waiting for enumeration (500 ms for reset, 5s for enumeration)"'
|
echo >> flash.sh 'echo "Waiting for 0.5s for reset"'
|
||||||
echo >> flash.sh 'sleep 0.5'
|
echo >> flash.sh 'sleep 0.5'
|
||||||
echo >> flash.sh 'SECONDS=0'
|
echo >> flash.sh 'SECONDS=0'
|
||||||
echo >> flash.sh 'while (! lsusb | grep "cafe:") && [ $SECONDS -le 5 ] ; do : ; done'
|
echo >> flash.sh 'lsusb | grep "cafe:"'
|
||||||
|
|
||||||
- name: Test cdc_dual_ports
|
- name: Test cdc_dual_ports
|
||||||
#working-directory: ${{github.workspace}}
|
#working-directory: ${{github.workspace}}
|
||||||
run: |
|
run: |
|
||||||
./flash.sh cdc_dual_ports
|
./flash.sh cdc_dual_ports
|
||||||
|
while ! ([ -e /dev/ttyACM1 ] && [ -e /dev/ttyACM2 ]) && [$SECONDS -le 5]; do :; done
|
||||||
test -e /dev/ttyACM1 && echo "ttyACM1 exists"
|
test -e /dev/ttyACM1 && echo "ttyACM1 exists"
|
||||||
test -e /dev/ttyACM2 && echo "ttyACM2 exists"
|
test -e /dev/ttyACM2 && echo "ttyACM2 exists"
|
||||||
|
|
||||||
@ -49,6 +50,8 @@ jobs:
|
|||||||
#working-directory: ${{github.workspace}}
|
#working-directory: ${{github.workspace}}
|
||||||
run: |
|
run: |
|
||||||
./flash.sh cdc_msc
|
./flash.sh cdc_msc
|
||||||
|
while ! ([ -e /dev/ttyACM1 ] && [ -e /dev/sda ]) && [$SECONDS -le 5]; do :; done
|
||||||
test -e /dev/ttyACM1 && echo "ttyACM1 exists"
|
test -e /dev/ttyACM1 && echo "ttyACM1 exists"
|
||||||
|
test -e /dev/sda && echo "sda exists"
|
||||||
test -f /media/pi/TinyUSB\ MSC/README.TXT && echo "MSC README.TXT exist"
|
test -f /media/pi/TinyUSB\ MSC/README.TXT && echo "MSC README.TXT exist"
|
||||||
cat /media/pi/TinyUSB\ MSC/README.TXT
|
cat /media/pi/TinyUSB\ MSC/README.TXT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user