mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-27 12:49:01 +08:00
add hw test support for Keil
This commit is contained in:
parent
427f95337f
commit
661ed61779
@ -1,10 +1,23 @@
|
||||
# Do NOT use parenthesis on Windows project dir names
|
||||
PROJECTS = $(wildcard ../../examples/stm32/nucleo-*-keil-*)
|
||||
PROJECTS ?= $(wildcard ../../examples/stm32/nucleo-*-keil-*)
|
||||
TARGET ?= "Target 1"
|
||||
|
||||
all: $(PROJECTS)
|
||||
|
||||
# Need to test inside .bat to check and transfer errors
|
||||
$(PROJECTS): FORCE
|
||||
unitest.bat $(subst /,\,$@)
|
||||
unitest.bat $(subst /,\,$@) $(TARGET)
|
||||
|
||||
FORCE:
|
||||
|
||||
# Automated remote test. See https://vcon.io/automated-firmware-tests/
|
||||
URL ?= https://dash.vcon.io/api/v3/devices
|
||||
update: $(PROJECTS)
|
||||
curl -su :$(VCON_API_KEY) $(URL)/$(DEVICE)/ota?hex=1 --data-binary @$</Objects/firmware.hex
|
||||
|
||||
test update: TARGET = Test
|
||||
test: update
|
||||
curl --fail-with-body -su :$(VCON_API_KEY) $(URL)/$(DEVICE)/tx?t=5
|
||||
# TODO(): no tee, no grep
|
||||
#| tee /tmp/output.txt
|
||||
# grep 'READY, IP:' /tmp/output.txt # Check for network init
|
||||
|
@ -1,8 +1,7 @@
|
||||
cd %*
|
||||
start /WAIT /B C:\Keil_v5\UV4\UV4.exe -cr device-dashboard.uvprojx -j0 -o output.txt
|
||||
cd %1
|
||||
start /WAIT /B C:\Keil_v5\UV4\UV4.exe -cr device-dashboard.uvprojx -j0 -o output.txt -t %2
|
||||
if %ERRORLEVEL% NEQ 0 (
|
||||
type output.txt
|
||||
exit /B %ERRORLEVEL%
|
||||
)
|
||||
del output.txt
|
||||
C:\Keil_v5\UV4\UV4.exe -c device-dashboard.uvprojx -j0
|
||||
|
Loading…
Reference in New Issue
Block a user