Skip to content

[Feature] 完善外设驱动 utest 覆盖清单 #11446

@CYFS3

Description

@CYFS3

背景

目前 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 [utest][pin] add pin loopback utest #11445)
  • serial_v2
  • serial_bypass
  • device_core
  • ipc_completion
  • ipc_workqueue
  • 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,哪些保留为手动板级验证。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions