mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-22 11:36:21 +00:00
Add test Makefiles for IDEs
Add Wizard test script
This commit is contained in:
1 parent
5af2de635e
commit
f3cd74cb46
7 files changed
+173
-12
No files matched your search
+3
-12
@@ -9,17 +9,8 @@ all: $(PROJECTS)
|
||||
$(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -removeAll workspace
|
||||
|
||||
$(PROJECTS): FORCE
|
||||
(make -C $@ && sudo make -C $@ clean) || $(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -import $@ -cleanBuild $(@F)/$(TARGET)
|
||||
(make -C $@ && make -C $@ clean) || ( \
|
||||
PROJNAME=`xq -r .projectDescription.name $@/.project` && \
|
||||
$(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -import $@ -cleanBuild $$PROJNAME/$(TARGET) )
|
||||
|
||||
FORCE:
|
||||
|
||||
# Automated remote test. See https://vcon.io/automated-firmware-tests/
|
||||
URL ?= https://dash.vcon.io/api/v3/devices
|
||||
update: $(PROJECTS)
|
||||
curl --fail-with-body -su :$(VCON_API_KEY) $(URL)/$(DEVICE)/ota --data-binary @$</$(TARGET)/firmware.bin
|
||||
|
||||
test update: TARGET = Test
|
||||
test: update
|
||||
curl --fail-with-body -su :$(VCON_API_KEY) $(URL)/$(DEVICE)/tx?t=5 | tee /tmp/output.txt
|
||||
grep 'READY, IP:' /tmp/output.txt # Check for network init
|
||||
# grep 'MQTT connected' /tmp/output.txt # Check for MQTT connection success
|
||||
Reference in new issue
Block a user