27 lines
929 B
Python
27 lines
929 B
Python
# -*- coding: utf-8 -*-
|
||
"""套件注册表。每个套件模块提供 run(report, ctx) -> None.
|
||
|
||
ctx 字段(cli 注入):
|
||
transport: "com" | "ble" —— app 套件使用
|
||
port: str —— COM 端口(transport=com 时必填)
|
||
baud: int
|
||
device: str —— J-Link 器件名
|
||
allow_poweroff: bool —— @destructive 用例开关
|
||
dump_png: str —— ui 套件可选截图输出路径
|
||
"""
|
||
from __future__ import annotations
|
||
|
||
from . import app_protocol, ble_smoke, keys_tm1629, keys_tm1617, packs_bin123, ui_nav
|
||
|
||
# name -> (module, 需要的资源标签)
|
||
SUITES = {
|
||
"app": (app_protocol, {"transport"}),
|
||
"ble": (ble_smoke, {"ble"}),
|
||
"keys": (keys_tm1629, {"rtt"}),
|
||
"keys1617": (keys_tm1617, {"rtt"}),
|
||
"packs": (packs_bin123, {"rtt"}),
|
||
"ui": (ui_nav, {"rtt"}),
|
||
}
|
||
|
||
ALL_ORDER = ("app", "ble", "keys", "keys1617", "packs", "ui")
|