Add goTool autotest with bench configs and UART scenarios.
JSON configs describe network and node MACs; scenarios run command sequences with expect checks. Share UART client API across CLI and tests. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Vendored
+51
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"id": "smoke",
|
||||
"description": "Basic master UART checks (no slaves required for version)",
|
||||
"config": "example-lab",
|
||||
"steps": [
|
||||
{
|
||||
"name": "firmware version",
|
||||
"command": "version",
|
||||
"expect": {
|
||||
"version_min": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "wait for ESP-NOW join",
|
||||
"delay_ms": 5000
|
||||
},
|
||||
{
|
||||
"name": "slave visible",
|
||||
"command": "clients",
|
||||
"expect": {
|
||||
"min_clients": 1,
|
||||
"slave": "pod-1",
|
||||
"available": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "unicast path",
|
||||
"command": "unicast_test",
|
||||
"input": {
|
||||
"slave": "pod-1",
|
||||
"seq": 42
|
||||
},
|
||||
"expect": {
|
||||
"success": true,
|
||||
"seq": 42
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "read local deadzone",
|
||||
"command": "deadzone",
|
||||
"input": {
|
||||
"write": false,
|
||||
"client": 0
|
||||
},
|
||||
"expect": {
|
||||
"success": true,
|
||||
"deadzone": 100
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user