diff options
| author | Your Name <you@example.com> | 2026-05-18 19:55:01 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-18 19:55:01 +0530 |
| commit | f8a5cffd3fe9d07de52e1688bda9b2975adbb74d (patch) | |
| tree | 8fb5cfff0a24bd4868a8dcb70103dc10e2c0d873 /docs | |
| parent | c8c68dcc0dc4b897519105faec64994e820af0c2 (diff) | |
feat: add E2E test helpers and update checklist for physical board testing
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/TOLLGATE_CORE_DESIGN.md | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/docs/TOLLGATE_CORE_DESIGN.md b/docs/TOLLGATE_CORE_DESIGN.md index a1ec639..d5ed06f 100644 --- a/docs/TOLLGATE_CORE_DESIGN.md +++ b/docs/TOLLGATE_CORE_DESIGN.md | |||
| @@ -327,7 +327,7 @@ This refactoring **must not proceed** until these branches land on master: | |||
| 327 | - [x] Implement `tollgate_core_tick()` — session expiry check | 327 | - [x] Implement `tollgate_core_tick()` — session expiry check |
| 328 | - [x] Implement `tollgate_core_get_status_json()` — JSON status | 328 | - [x] Implement `tollgate_core_get_status_json()` — JSON status |
| 329 | - [x] Implement `tollgate_core_get_config_json()` — JSON config (via platform) | 329 | - [x] Implement `tollgate_core_get_config_json()` — JSON config (via platform) |
| 330 | - [ ] Build and verify standalone | 330 | - [x] Build and verify standalone |
| 331 | 331 | ||
| 332 | ### Phase 4: Standalone Platform Implementation | 332 | ### Phase 4: Standalone Platform Implementation |
| 333 | 333 | ||
| @@ -344,7 +344,26 @@ This refactoring **must not proceed** until these branches land on master: | |||
| 344 | - [x] Remove old `main/cashu.c`, `main/dns_server.c`, `main/firewall.c`, `main/session.c` from CMakeLists.txt | 344 | - [x] Remove old `main/cashu.c`, `main/dns_server.c`, `main/firewall.c`, `main/session.c` from CMakeLists.txt |
| 345 | - [x] Update `main/CMakeLists.txt` (remove old SRCS, add `tollgate_platform.c`, add `tollgate_core` to REQUIRES) | 345 | - [x] Update `main/CMakeLists.txt` (remove old SRCS, add `tollgate_platform.c`, add `tollgate_core` to REQUIRES) |
| 346 | - [x] Update `main/lwip_tollgate_hooks.h` to call `tollgate_core_ip4_canforward_filter` | 346 | - [x] Update `main/lwip_tollgate_hooks.h` to call `tollgate_core_ip4_canforward_filter` |
| 347 | - [ ] Full standalone build + test | 347 | - [x] Full standalone build + test (verified: `c8c68dc` — build passes, 61/61 unit tests pass) |
| 348 | |||
| 349 | ### Phase 4.5: Physical Board E2E Testing (Board A) | ||
| 350 | |||
| 351 | - [x] Create `tests/integration/helpers/network.mjs` (shared test utilities) | ||
| 352 | - [x] Add arch test Makefile targets with mutex protection to `physical-router-test-automation/esp32/Makefile` | ||
| 353 | - [x] Add top-level Makefile wrappers for arch tests | ||
| 354 | - [ ] Acquire Board A mutex lock | ||
| 355 | - [ ] Flash arch firmware to Board A | ||
| 356 | - [ ] Verify boot via serial (no panics, services started) | ||
| 357 | - [ ] Connect WiFi to Board A AP | ||
| 358 | - [ ] Run smoke test (`arch-test-smoke`) | ||
| 359 | - [ ] Run network test (`arch-test-network`) | ||
| 360 | - [ ] Run API test (`arch-test-api`) | ||
| 361 | - [ ] Run DNS + firewall test (`arch-test-dns-fw`) | ||
| 362 | - [ ] Run reset auth test (`arch-test-reset`) | ||
| 363 | - [ ] Run session expiry test (`arch-test-session`) | ||
| 364 | - [ ] Run phase 2 API test (`arch-test-phase2`) | ||
| 365 | - [ ] Commit and push test results | ||
| 366 | - [ ] Release Board A mutex lock | ||
| 348 | 367 | ||
| 349 | ### Phase 5: ESP-Miner Integration | 368 | ### Phase 5: ESP-Miner Integration |
| 350 | 369 | ||