Skip to content

Commit 2fbe625

Browse files
committed
Merge branch 'floitsch/run-hw-tests.22.install-pkgs' into floitsch/run-hw-tests.25.board12
2 parents 776b113 + 2f97203 commit 2fbe625

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1302,4 +1302,4 @@ jobs:
13021302
run: |
13031303
# Get the pin configuration from the file in the runner's home.
13041304
source $HOME/pi-test.env
1305-
make TOIT_EXE_HW=${{ github.workspace }}/rpi/toit/bin/toit test-serial
1305+
make TOIT_EXE_HW=${{ github.workspace }}/rpi/toit/bin/toit test-hw

Makefile

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -306,16 +306,28 @@ install: install-sdk
306306
test:
307307
(cd $(BUILD)/$(HOST) && ninja check_slow check_fuzzer_lib)
308308

309-
.PHONY: test-serial
310-
test-serial:
309+
.PHONY: rebuild-cmake-hw
310+
rebuild-cmake-hw:
311311
@if [ -z "$$TOIT_EXE_HW" ]; then \
312312
echo "TOIT_EXE_HW is not set."; \
313313
exit 1; \
314314
fi
315-
mkdir -p $(BUILD)/serial
316-
(cd $(BUILD)/serial && cmake -DTOIT_EXE_HW=$$TOIT_EXE_HW -G Ninja $(CURDIR)/tests/hw)
315+
mkdir -p $(BUILD)/hw
316+
(cd $(BUILD)/hw && cmake -DTOIT_EXE_HW=$$TOIT_EXE_HW -G Ninja $(CURDIR)/tests/hw)
317+
318+
.PHONY: download-packages-hw-host
319+
download-packages-hw-host:
320+
cmake -E env TOIT_EXE_HW=$(BUILD)/$(HOST)/sdk/bin/toit $(MAKE) download-packages-hw
321+
322+
.PHONY: download-packages-hw
323+
download-packages-hw:
317324
$$TOIT_EXE_HW pkg install --project-root tests/hw/pi
318-
(cd $(BUILD)/serial && ninja check_pi)
325+
$$TOIT_EXE_HW pkg install --project-root tests/hw/esp32
326+
$$TOIT_EXE_HW pkg install --project-root tests/hw/esp-tester
327+
328+
.PHONY: test-hw
329+
test-hw: rebuild-cmake-hw download-packages-hw
330+
(cd $(BUILD)/hw && ninja check_pi)
319331

320332
.PHONY: build-test-assets
321333
build-test-assets: rebuild-cmake
@@ -338,12 +350,12 @@ update-gold:
338350
(cd $(BUILD)/$(HOST) && ninja update_type_gold)
339351

340352
.PHONY: test-health
341-
test-health: download-packages
353+
test-health: download-packages download-packages-hw-host
342354
$(MAKE) rebuild-cmake
343355
(cd $(BUILD)/$(HOST) && ninja check_health)
344356

345357
.PHONY: update-health-gold
346-
update-health-gold: download-packages
358+
update-health-gold: download-packages download-packages-hw-host
347359
$(MAKE) rebuild-cmake
348360
(cd $(BUILD)/$(HOST) && ninja clear_health_gold)
349361
(cd $(BUILD)/$(HOST) && ninja update_health_gold)

0 commit comments

Comments
 (0)