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:
parent
24df01474f
commit
e16796826a
@ -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"
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user