Skip to content

Commit 4fb73f4

Browse files
committed
docs: document v1.1.1 synthetic fixture smoke flow
1 parent b909b4e commit 4fb73f4

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

README-zh.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,29 @@ cd build-pages/site && python3 -m http.server 8080
8484
# 打开 http://localhost:8080
8585
```
8686

87+
### v1.1.1 浏览器 smoke 基线(仅合成 fixture)
88+
89+
`v1.1.1` 起默认采用“合成 `.spz` 夹具”进行浏览器验收,避免真实样例的协议风险:
90+
91+
```bash
92+
# 1)先构建本地 CLI(用于生成 fixture)
93+
cmake -S cpp -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF
94+
cmake --build build --parallel
95+
96+
# 2)构建 WASM 站点
97+
emcmake cmake -S cpp -B build-pages -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF
98+
emmake cmake --build build-pages --parallel
99+
100+
# 3)生成合成合法样例(仓库内可控路径)
101+
./build/spz_gatekeeper gen-fixture --type 0xADBE0002 --mode valid --out build-pages/site/synthetic_valid.spz
102+
103+
# 4)启动本地服务并跑浏览器 smoke
104+
python3 -m http.server 4173 --directory build-pages/site
105+
node tests/wasm_smoke_test.mjs http://127.0.0.1:4173 build-pages/site/synthetic_valid.spz
106+
```
107+
108+
策略说明:CI/Web smoke 默认只依赖合成 fixture;真实本地样例仅可选,不作为发布门禁必需输入。
109+
87110
## 快速开始
88111

89112
### 在 WSL/Linux/macOS 构建

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,29 @@ cd build-pages/site && python3 -m http.server 8080
8484
# Open http://localhost:8080
8585
```
8686

87+
### v1.1.1 Browser smoke baseline (synthetic fixture only)
88+
89+
`v1.1.1` ships a browser smoke flow that avoids real `.spz` assets by default:
90+
91+
```bash
92+
# 1) Build native CLI for fixture generation
93+
cmake -S cpp -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF
94+
cmake --build build --parallel
95+
96+
# 2) Build WASM site
97+
emcmake cmake -S cpp -B build-pages -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF
98+
emmake cmake --build build-pages --parallel
99+
100+
# 3) Generate synthetic valid fixture (repo-owned path)
101+
./build/spz_gatekeeper gen-fixture --type 0xADBE0002 --mode valid --out build-pages/site/synthetic_valid.spz
102+
103+
# 4) Run local server + browser smoke
104+
python3 -m http.server 4173 --directory build-pages/site
105+
node tests/wasm_smoke_test.mjs http://127.0.0.1:4173 build-pages/site/synthetic_valid.spz
106+
```
107+
108+
Policy: CI/Web smoke uses synthetic fixtures by default; real local assets remain optional and are not required for release gating.
109+
87110
## Quick Start
88111

89112
### Build in WSL/Linux/macOS

0 commit comments

Comments
 (0)