diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
| @@ -7,9 +7,9 @@ export | |||
| 7 | IDF_PATH ?= $(HOME)/esp/esp-idf | 7 | IDF_PATH ?= $(HOME)/esp/esp-idf |
| 8 | PROJECT_DIR := $(shell pwd) | 8 | PROJECT_DIR := $(shell pwd) |
| 9 | BUILD_DIR := $(PROJECT_DIR)/build | 9 | BUILD_DIR := $(PROJECT_DIR)/build |
| 10 | PORT_A ?= /dev/ttyACM1 | 10 | PORT_A ?= /dev/ttyACM0 |
| 11 | PORT_B ?= /dev/ttyACM2 | 11 | PORT_B ?= /dev/ttyACM1 |
| 12 | PORT_C ?= /dev/ttyACM0 | 12 | PORT_C ?= /dev/ttyACM2 |
| 13 | PORT ?= $(PORT_A) | 13 | PORT ?= $(PORT_A) |
| 14 | BAUD ?= 460800 | 14 | BAUD ?= 460800 |
| 15 | TARGET ?= esp32s3 | 15 | TARGET ?= esp32s3 |
| @@ -87,7 +87,7 @@ endef | |||
| 87 | .PHONY: help setup detect-ports detect-chip detect-all | 87 | .PHONY: help setup detect-ports detect-chip detect-all |
| 88 | .PHONY: flash flash-a flash-b monitor monitor-a monitor-b | 88 | .PHONY: flash flash-a flash-b monitor monitor-a monitor-b |
| 89 | .PHONY: test test-unit test-integration test-e2e test-all | 89 | .PHONY: test test-unit test-integration test-e2e test-all |
| 90 | .PHONY: test-smoke test-api test-network test-portal test-payment | 90 | .PHONY: test-smoke test-api test-network test-portal test-payment test-wifi-setup |
| 91 | .PHONY: test-reset-auth test-session-expiry test-dns-firewall test-cvm | 91 | .PHONY: test-reset-auth test-session-expiry test-dns-firewall test-cvm |
| 92 | .PHONY: tokens wallet-setup wallet-info wallet-balance mint-token send-token | 92 | .PHONY: tokens wallet-setup wallet-info wallet-balance mint-token send-token |
| 93 | .PHONY: clean erase-nvs reset serial-log bootstrap-config | 93 | .PHONY: clean erase-nvs reset serial-log bootstrap-config |
| @@ -118,6 +118,7 @@ help: | |||
| 118 | @echo " test-dns-firewall DNS hijack + NAT filter test" | 118 | @echo " test-dns-firewall DNS hijack + NAT filter test" |
| 119 | @echo " test-session-expiry Session lifecycle with 65s expiry wait" | 119 | @echo " test-session-expiry Session lifecycle with 65s expiry wait" |
| 120 | @echo " test-cvm ContextVM protocol integration test" | 120 | @echo " test-cvm ContextVM protocol integration test" |
| 121 | @echo " test-wifi-setup WiFi setup page E2E tests (Playwright)" | ||
| 121 | @echo "" | 122 | @echo "" |
| 122 | @echo "ContextVM:" | 123 | @echo "ContextVM:" |
| 123 | @echo " cvm-pubkey Print board's ContextVM npub" | 124 | @echo " cvm-pubkey Print board's ContextVM npub" |
| @@ -273,6 +274,11 @@ test-portal: | |||
| 273 | @echo "=== Running Playwright portal tests ===" | 274 | @echo "=== Running Playwright portal tests ===" |
| 274 | cd tests/e2e && npx playwright test captive-portal.spec.mjs | 275 | cd tests/e2e && npx playwright test captive-portal.spec.mjs |
| 275 | 276 | ||
| 277 | test-wifi-setup: | ||
| 278 | $(call _require_board_lock) | ||
| 279 | @echo "=== Running WiFi setup E2E tests ===" | ||
| 280 | cd tests/e2e && npx playwright test wifi-setup.spec.mjs | ||
| 281 | |||
| 276 | test-payment: | 282 | test-payment: |
| 277 | $(call _require_board_lock) | 283 | $(call _require_board_lock) |
| 278 | @echo "=== Running payment tests ===" | 284 | @echo "=== Running payment tests ===" |