按建议,继续完成后续工作

结论:已新增 host/WASM/browser 聚合 smoke 验证入口,一次构建 INI WASM 后串行覆盖 Node WASM、OPFS mock 和 Chromium browser smoke,并同步更新验证与漂移文档。
This commit is contained in:
2026-06-08 03:21:53 +08:00
parent cb1901d4c4
commit 1f6d5a8e8b
6 changed files with 31 additions and 3 deletions

View File

@@ -30,6 +30,12 @@ The current browser smoke validation command is:
wasm-port/tests/browser/verify_ini_panel_browser.sh
```
The current aggregate host/WASM/browser smoke command is:
```bash
wasm-port/tests/host/verify_host_smokes.sh
```
## Validation Chain
The native validation script runs these checks in order:
@@ -68,6 +74,9 @@ headless against a test page that imports the JS SDK, loads the INI WASM
module, queries vendored LinuxCNC INI parsing through the SDK, and performs an
OPFS text-file round trip.
The aggregate host smoke script builds the INI WASM artifact once, then runs
the Node WASM smoke, the Node OPFS mock smoke, and the Chromium browser smoke.
## Source Coverage
Every `.c` and `.cc` entry in `tools/source-manifest.txt` must have a
@@ -117,6 +126,7 @@ The validation fails if:
| `tests/wasm/node/verify_ini_wasm.sh` | Validates the browser-facing INI WASM module can be built from vendored LinuxCNC `inifile.cc`, loaded through the JS SDK in Node, and queried through the exported C ABI. |
| `tests/opfs/node/verify_file_service.sh` | Validates the host-owned OPFS text-file adapter used by the browser INI panel without moving file persistence into the WASM core. |
| `tests/browser/verify_ini_panel_browser.sh` | Validates the INI SDK, WASM module loading, and OPFS text-file round trip in a real browser runtime. |
| `tests/host/verify_host_smokes.sh` | Runs the current host-side Node, WASM, OPFS, and browser smoke validation with a single INI WASM build. |
## Fixture Coverage