Skip to content

Commit

Permalink
Merge pull request #23 from cpq/t
Browse files Browse the repository at this point in the history
Add HW test for pico
  • Loading branch information
cpq committed Jan 11, 2023
2 parents 29633af + b058d93 commit 8d419f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- run: make -C step-5-cmsis
- run: make -C step-6-clock
- run: make -C step-7-webserver/nucleo-f429zi
- run: make -C step-7-webserver/pico-w5500
- run: make -C step-7-webserver/pico-w5500 test VCON_API_KEY=${{secrets.VCON_API_KEY}}
macos:
runs-on: macos-latest
steps:
Expand Down
8 changes: 8 additions & 0 deletions step-7-webserver/pico-w5500/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,13 @@ firmware.bin: firmware.elf
firmware.uf2: firmware.bin $(BIN2UF2)
$(BIN2UF2) $< $@

# Requires env variable VCON_API_KEY set
DEVICE_URL ?= https://dash.vcon.io/api/v3/devices/1
test: build
curl -su :$(VCON_API_KEY) $(DEVICE_URL) | tee /tmp/a
curl --fail -su :$(VCON_API_KEY) $(DEVICE_URL)/ota?uf2=1 --data-binary @firmware.uf2
curl --fail -su :$(VCON_API_KEY) $(DEVICE_URL)/tx?t=5 | tee /tmp/output.txt
grep 'Ethernet: ' /tmp/output.txt

clean:
$(RM) firmware.* bin2uf2

0 comments on commit 8d419f5

Please sign in to comment.