ci: cram: add test for tr181-button manager

Add initial test for tr181-button manager, checking that both Reset and
WPS buttons are in Released state. This QA a proper device tree gpio
button definitions, kernel modules etc.  This is known to be working on
Freedom, OSPv2 and Haze boards.

Tests: PCF-1673
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
This commit is contained in:
Petr Štetiar 2025-04-09 04:40:21 +00:00
parent 24df01474f
commit e16796826a
No known key found for this signature in database
GPG Key ID: 58EE120F30CC02D3

View File

@ -0,0 +1,20 @@
Create R alias:
$ alias R="${CRAM_REMOTE_COMMAND:-}"
Don't run test on Turris Omnia and OSPv1 boards as they don't have Reset and WPS buttons:
$ [ "$DUT_BOARD" = "turris-omnia" ] || exit 80
$ [ "$DUT_BOARD" = "urx851-hdk-3" ] || exit 80
Check that all buttons are in the expected state:
$ R "ba-cli --less --json 'Device.Buttons.Button.*.Status?'" | jq --sort-keys '.[0]'
{
"Device.Buttons.Button.1.": {
"Status": "Released"
},
"Device.Buttons.Button.2.": {
"Status": "Released"
}
}