prplos/.gitlab/tests/cram/generic/ubus-datamodel-list-cellular.t
Christian Marangi e342d3003e ci: cram: detach cellular specific element from generic ubus datamodel test
Some ubus datamodel are specific to devices with cellular support. Move
these element to the specific ubus datamodel test to fix the generic test
from failing.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Peter Steinhaeuser <ps@embedd.com>
2026-07-01 15:10:02 +01:00

36 lines
1.2 KiB
Perl

Create R alias:
$ alias R="${CRAM_REMOTE_COMMAND:-}"
If test is running on a Mozart, Turris, OSPv1 or Haze, lets skip the test as there is no Cellular support:
$ if echo "$CI_JOB_NAME" | grep -q -E "(Mozart|Turris|Haze|HDK-3)"; then exit 80; fi
Check that ubus has expected Cellular datamodels available:
$ R "ubus list | grep -e '^Cellular' -e 'Device.Cellular' -e 'Device.SessionManagement' -e 'Device.TrustedElements' -e '^SessionManagement' -e '^TrustedElements' | grep -v -e '\.[[:digit:]]'"
Cellular
Cellular.AccessPoint
Cellular.Interface
Cellular.Interface.SMS.Incoming
Cellular.Interface.SMS.Message
Cellular.Interface.SMS.Outgoing
Cellular.Interface.SMS.Storage
Device.Cellular
Device.SessionManagement
Device.TrustedElements
SessionManagement
SessionManagement.PDN
SessionManagement.PDP
SessionManagement.PDU
SessionManagement.PDU.NetworkSlice
SessionManagement.PDU.QoSFlow
SessionManagement.PDU.QoSRule
SessionManagement.PDU.QoSRule.Filter
SessionManagement.Session
SessionManagement.Session.IPv4Address
SessionManagement.Session.IPv6Address
SessionManagement.Session.PCO
TrustedElements
TrustedElements.SIM
TrustedElements.SIM.Profile