cram: split process-manager test into full and smoke suites
Split WiFi process-manager cram coverage into: - process-manager-full.t (existing full scenario) - process-manager-smoke.t (short health/enable-disable checks) Update mxl25641-hdk-6 and wnc-freedom board links to run smoke by default. Signed-off-by: Andrey Erokhin <a.erokhin@inango-systems.com> Signed-off-by: Igor Plesser <i.plesser@inango-systems.com>
This commit is contained in:
parent
5e4a4747d3
commit
8ff1fd3213
@ -1 +1 @@
|
||||
../wifi/process-manager.t
|
||||
../wifi/process-manager-smoke.t
|
||||
58
.gitlab/tests/cram/wifi/process-manager-smoke.t
Normal file
58
.gitlab/tests/cram/wifi/process-manager-smoke.t
Normal file
@ -0,0 +1,58 @@
|
||||
Create R alias:
|
||||
|
||||
$ alias R="${CRAM_REMOTE_COMMAND:-}"
|
||||
|
||||
Check the services are enabled by default:
|
||||
|
||||
$ R "{ ba-cli -l X_PRPLWARE-COM_ProcessManager.Sensing.Enable? ; ba-cli -l X_PRPLWARE-COM_ProcessManager.PWHM.Enable? ; ba-cli -l X_PRPLWARE-COM_ProcessManager.PrplMesh.Enable? ; }" | tr -d '\n'
|
||||
111 (no-eol)
|
||||
|
||||
Check the processes are actually running:
|
||||
|
||||
$ R "pgrep -afc wifi-sensing"
|
||||
1
|
||||
|
||||
$ R "pgrep -afc wld"
|
||||
1
|
||||
|
||||
$ R "pgrep -afc beerocks_agent"
|
||||
1
|
||||
|
||||
Check that this is reflected in the DM:
|
||||
|
||||
$ R "ba-cli -l X_PRPLWARE-COM_ProcessManager.Sensing.Status?" | tr -d '\n'
|
||||
Active (no-eol)
|
||||
|
||||
$ R "ba-cli -l X_PRPLWARE-COM_ProcessManager.PWHM.Status?" | tr -d '\n'
|
||||
Active (no-eol)
|
||||
|
||||
$ R "ba-cli -l X_PRPLWARE-COM_ProcessManager.PrplMesh.Status?" | tr -d '\n'
|
||||
Active (no-eol)
|
||||
|
||||
Check that managing WiFi Sensing works:
|
||||
|
||||
$ R "ba-cli -l X_PRPLWARE-COM_ProcessManager.Sensing.Enable=0" | tr -d '\n'
|
||||
0 (no-eol)
|
||||
$ sleep 10
|
||||
$ R "pgrep -cf 'wifi-sensing'"
|
||||
0
|
||||
[1]
|
||||
$ R "ba-cli -l X_PRPLWARE-COM_ProcessManager.Sensing.Status?" | tr -d '\n'
|
||||
Idle (no-eol)
|
||||
$ R "ba-cli -l X_PRPLWARE-COM_ProcessManager.Sensing.Enable=1" | tr -d '\n'
|
||||
1 (no-eol)
|
||||
|
||||
$ R "amx_wait_for "X_PRPLWARE-COM_WiFiSensing." "
|
||||
$ R "pgrep -cf 'wifi-sensing'"
|
||||
1
|
||||
$ R "ba-cli -l X_PRPLWARE-COM_ProcessManager.Sensing.Status?" | tr -d '\n'
|
||||
Active (no-eol)
|
||||
|
||||
Check Sensing datamodel again:
|
||||
|
||||
$ R "ba-cli X_PRPLWARE-COM_ProcessManager.Sensing.? | grep -v '>'"
|
||||
X_PRPLWARE-COM_ProcessManager.Sensing.
|
||||
X_PRPLWARE-COM_ProcessManager.Sensing.Enable=1
|
||||
X_PRPLWARE-COM_ProcessManager.Sensing.FaultCode="NoFault"
|
||||
X_PRPLWARE-COM_ProcessManager.Sensing.Status="Active"
|
||||
|
||||
@ -1 +1 @@
|
||||
../wifi/process-manager.t
|
||||
../wifi/process-manager-smoke.t
|
||||
Loading…
Reference in New Issue
Block a user