## 背景 目前 RT-Thread 外设驱动 utest 覆盖还不完整,需要先统计当前哪些外设已有 utest,哪些外设还没有,再按清单逐步补齐。 ## 外设 utest 覆盖清单 说明: - `[x]` 表示当前已有对应 utest。 - `[ ]` 表示当前暂未发现对应 utest,需要后续补齐。 - `serial_v2` 已有较完整的 loopback/QEMU/POSIX 测试。 ## 已覆盖 / 待补齐 - [ ] adc - [ ] dac - [ ] i2c - [ ] spi - [ ] can - [ ] pwm - [ ] rtc - [ ] watchdog - [ ] timer - [ ] sensor - [ ] touch - [ ] audio - [ ] usb - [ ] sdio - [ ] mtd - [ ] flash - [ ] ethernet - [ ] wlan - [ ] pin (PR #11445) - [x] serial_v2 - [x] serial_bypass - [x] device_core - [x] ipc_completion - [x] ipc_workqueue - [x] smp_call ## 后续待办 - [ ] 确认 checklist 中每个外设在 `components/drivers` 下对应的实际目录和 Kconfig 名称。 - [ ] 为已有 utest 的外设补充测试说明:依赖配置、测试命令、是否需要硬件连接。 - [ ] 为缺失 utest 的外设补充基础 smoke test。 - [ ] 对支持 loopback 的外设补充回环测试,例如 UART、CAN、GPIO、SPI。 - [ ] 对可模拟的外设补充 mock/QEMU/POSIX 自动化测试。 - [ ] 对只能依赖真实硬件的外设补充 BSP、config 和接线说明。 - [ ] 统一外设 utest 的 Kconfig/SConscript 接入方式。 - [ ] 统一 testcase 命名,例如 `components.drivers.<peripheral>.<scenario>`。 - [ ] 梳理哪些外设 utest 可以进入 CI,哪些保留为手动板级验证。
背景
目前 RT-Thread 外设驱动 utest 覆盖还不完整,需要先统计当前哪些外设已有 utest,哪些外设还没有,再按清单逐步补齐。
外设 utest 覆盖清单
说明:
[x]表示当前已有对应 utest。[ ]表示当前暂未发现对应 utest,需要后续补齐。serial_v2已有较完整的 loopback/QEMU/POSIX 测试。已覆盖 / 待补齐
后续待办
components/drivers下对应的实际目录和 Kconfig 名称。components.drivers.<peripheral>.<scenario>。