串口采集/测试去重:删 tools/serial_tool 与 test/host run_boot_test/verify_log 副本,引用改指 .dsh/skills 串口 skill
This commit is contained in:
@@ -158,9 +158,7 @@ STM32F4-Base/
|
||||
│ │ ├── storage_test_task.c/h # 存储性能测试
|
||||
│ │ ├── net_test_task.c/h # 网络层测试
|
||||
│ │ └── net_latency_test.c/h # 链路时延探针
|
||||
│ └── host/ # 主机端脚本(PC 侧)
|
||||
│ ├── run_boot_test.py # 自动化启动测试(@test 入口)
|
||||
│ ├── verify_log.py # 日志标记校验
|
||||
│ └── host/ # 主机端脚本(PC 侧;@test 入口已迁至 .dsh/skills/serial-boot-test/)
|
||||
│ ├── ch395f_socket_test.py # Socket 通信测试
|
||||
│ ├── ftp_test.py / ftp_up_dl_test.py / ftp_speed_test.py / ftp_capture.py / ftp_regression.py
|
||||
│ ├── e02_probe.py # E-02 专项探针
|
||||
@@ -193,8 +191,7 @@ STM32F4-Base/
|
||||
│ ├── tests/ # 无头回归脚本 + 黄金参考(菜单像素回归 / 内容页黄金参考)
|
||||
│ └── SDL2/ # SDL2 2.32.10 预编译库
|
||||
├── tools/ # 开发工具
|
||||
│ ├── font_gen/ # 中文字体生成工具
|
||||
│ └── serial_tool/ # Python 串口助手(常驻 daemon + CLI,见 docs/测试说明/串口助手设计说明.md)
|
||||
│ └── font_gen/ # 中文字体生成工具
|
||||
├── ui_cn_chars.txt # 中文字体字符集
|
||||
├── requirements.txt # Python 依赖清单(统一 .venv 环境,见 AGENTS.md「Python 环境」)
|
||||
├── STM32F407-Demo.ioc # CubeMX 工程文件
|
||||
@@ -285,7 +282,7 @@ UI 改动回归门禁(菜单像素回归 + 内容页黄金参考 + 池水位
|
||||
|
||||
```powershell
|
||||
# 一键测试:串口捕获 → 烧录 → 日志校验(2026-09-20 起为纯 Python 标准库实现)
|
||||
& '.venv\Scripts\python.exe' test/host/run_boot_test.py
|
||||
& '.venv\Scripts\python.exe' .dsh/skills/serial-boot-test/scripts/run_boot_test.py
|
||||
```
|
||||
|
||||
退出码:0 = PASS | 1 = FAIL | 2 = 错误
|
||||
@@ -313,7 +310,7 @@ UI 改动回归门禁(菜单像素回归 + 内容页黄金参考 + 池水位
|
||||
|
||||
### 串口调试
|
||||
|
||||
通过仓库内置 Python 串口助手(`tools/serial_tool/`)自主读取 USART1 串口打印:
|
||||
通过仓库内置 Python 串口助手(`.dsh/skills/serial-assistant/`)自主读取 USART1 串口打印:
|
||||
|
||||
- 端口配置:`.serialtest/config.json`(单一配置源)
|
||||
- 用法详见 `docs/测试说明/串口助手使用指南.md`,设计见 `docs/测试说明/串口助手设计说明.md`
|
||||
@@ -377,7 +374,7 @@ pre-commit run --all-files
|
||||
| `Drivers/BSP/GD5F2GQ5UE/gd5f2gq5ue.c` | NAND Flash 驱动 |
|
||||
| `Drivers/BSP/NET/net_socket.c` | BSD Socket API |
|
||||
| `MDK-ARM/build.bat` | 编译脚本 |
|
||||
| `test/host/run_boot_test.py` | 自动化测试脚本 |
|
||||
| `.dsh/skills/serial-boot-test/scripts/run_boot_test.py` | 自动化测试脚本 |
|
||||
|
||||
## 已知问题
|
||||
|
||||
|
||||
Reference in New Issue
Block a user