test:@test 闭环迁移 PowerShell→Python(run_boot_test/verify_log 纯标准库,文档同步)
This commit is contained in:
@@ -138,8 +138,8 @@ STM32F4-Base/
|
||||
│ ├── download.bat # 烧录脚本
|
||||
│ └── startup_stm32f407xx.s # 启动文件
|
||||
├── test/ # 测试代码与脚本
|
||||
│ ├── run_boot_test.ps1 # 自动化启动测试
|
||||
│ ├── verify_log.ps1 # 日志校验脚本
|
||||
│ ├── run_boot_test.py # 自动化启动测试
|
||||
│ ├── verify_log.py # 日志校验脚本
|
||||
│ ├── test_config.c/h # 测试任务配置
|
||||
│ ├── ch395f_test_task.c/h # CH395F 硬件测试
|
||||
│ ├── gd5f_test_task.c/h # NAND Flash 测试
|
||||
@@ -266,9 +266,9 @@ UI 改动回归门禁(菜单像素回归 + 内容页黄金参考 + 池水位
|
||||
|
||||
### 启动测试
|
||||
|
||||
```bash
|
||||
# 一键测试:构建 → 串口捕获 → 烧录 → 日志校验
|
||||
powershell -ExecutionPolicy Bypass -File test\run_boot_test.ps1
|
||||
```powershell
|
||||
# 一键测试:串口捕获 → 烧录 → 日志校验(2026-09-20 起为纯 Python 标准库实现)
|
||||
& '.venv\Scripts\python.exe' test/run_boot_test.py
|
||||
```
|
||||
|
||||
退出码:0 = PASS | 1 = FAIL | 2 = 错误
|
||||
@@ -360,7 +360,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/run_boot_test.ps1` | 自动化测试脚本 |
|
||||
| `test/run_boot_test.py` | 自动化测试脚本 |
|
||||
|
||||
## 已知问题
|
||||
|
||||
|
||||
Reference in New Issue
Block a user