prplos/.gitlab/tests/cram/generic/acceleration-plan-components/50-cellular-offline.t
Christian Marangi 33977c34b3 profiles: add Airoha/Nokia profile
Add Airoha/Nokia profile for the Valyrian board. Required packages
are imported from the feed-airoha repository.

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

28 lines
928 B
Perl

Create R alias:
$ alias R="${CRAM_REMOTE_COMMAND:-}"
If test is running on a Valyrian, Valyrian, Mozart, Turris or Haze, lets skip the test as there is no cellular modem available:
$ if echo "$CI_JOB_NAME" | grep -q -E "(Valyrian|Mozart|Turris|Haze|Valyrian)"; then exit 80; fi
Make sure Cellular is registered in the Datamodel:
$ R "ba-cli -ajl Cellular.?1"| jq -r '.[0] | keys[0]'
Cellular.
Make sure a Modem is found:
$ R "mmcli -L | head -n 1"
.*\/org\/freedesktop\/ModemManager[0-9]\/Modem\/[0-9]+.+ (re)
Check datamodel parameters that should be set when no SIM is detected:
$ R "ubus-cli -al Cellular.AccessPoint.1.Interface? | awk NF"
Device.Cellular.Interface.1.
$ R "ubus-cli -al Cellular.Interface.1.LowerLayers? | awk NF"
$ R "echo protected\; Cellular.Interface.1.InternalName? | xargs ba-cli -al | grep -v '> ' | awk NF"
.*\/org\/freedesktop\/ModemManager[0-9]\/Modem\/[0-9]+ (re)