Skip to content

Commit 8d419f5

Browse files
authored
Merge pull request #23 from cpq/t
Add HW test for pico
2 parents 29633af + b058d93 commit 8d419f5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- run: make -C step-5-cmsis
1616
- run: make -C step-6-clock
1717
- run: make -C step-7-webserver/nucleo-f429zi
18-
- run: make -C step-7-webserver/pico-w5500
18+
- run: make -C step-7-webserver/pico-w5500 test VCON_API_KEY=${{secrets.VCON_API_KEY}}
1919
macos:
2020
runs-on: macos-latest
2121
steps:

step-7-webserver/pico-w5500/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,13 @@ firmware.bin: firmware.elf
2929
firmware.uf2: firmware.bin $(BIN2UF2)
3030
$(BIN2UF2) $< $@
3131

32+
# Requires env variable VCON_API_KEY set
33+
DEVICE_URL ?= https://dash.vcon.io/api/v3/devices/1
34+
test: build
35+
curl -su :$(VCON_API_KEY) $(DEVICE_URL) | tee /tmp/a
36+
curl --fail -su :$(VCON_API_KEY) $(DEVICE_URL)/ota?uf2=1 --data-binary @firmware.uf2
37+
curl --fail -su :$(VCON_API_KEY) $(DEVICE_URL)/tx?t=5 | tee /tmp/output.txt
38+
grep 'Ethernet: ' /tmp/output.txt
39+
3240
clean:
3341
$(RM) firmware.* bin2uf2

0 commit comments

Comments
 (0)