test: add automated regression and mesh proxy coexistence suites

This commit is contained in:
shen
2026-11-03 20:50:02 -08:00
parent b656c1896a
commit 9e05f1ad93
17 changed files with 1952 additions and 2 deletions
+13
View File
@@ -72,6 +72,19 @@ cargo run -p meshport-test-server -- 10.77.0.2:7007
两种模式均自动学习符合规则的节点公告子网,无需填写远端 CIDR。应用内模式仅供 SDK TCP/UDP 访问;系统模式自动同步 OS 路由。规则及 macOS 启动方式见 [系统组网](docs/system-vpn.md)。
## 自动化测试
```sh
python3 scripts/test.py # Rust、Go、Flutter 和 macOS 配置存储回归
python3 scripts/test.py sdk engine # 只测 SDK 与引擎联调
python3 scripts/test.py client --native # macOS:重新构建原生库后跑 Flutter 原生测试
python3 scripts/test.py throughput # 可选:本机模拟延迟与吞吐诊断
python3 scripts/test.py speed --min-mbps 10 # 重复测速矩阵、丢包检查及速度门槛
python3 scripts/test.py combined # sing-box + SDK 同进程双路负载、UDP 和故障隔离
```
脚本逐项保存日志,输出 JSON 与 JUnit 报告,任一步失败时返回非零状态;默认不运行吞吐诊断或系统 VPN/真机测试。参数、依赖和 CI 使用方式见 [自动化测试](docs/automated-testing.md)。
## 清理构建缓存
运行 `python3 scripts/clean-build-artifacts.py` 预览,增加 `--delete` 删除可重新生成的构建缓存和临时测试产物。脚本保留工具链、用户配置、Git 历史和 `outputs/android`、`outputs/macos` 安装包;下次构建需要重新生成缓存。