sample:
  name: modem_shell Sample
tests:
  sample.cellular.modem_shell:
    build_only: true
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    tags: ci_build
  sample.cellular.modem_shell_debug:
    build_only: true
    extra_args: OVERLAY_CONFIG=overlay-debug.conf
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    tags: ci_build
  sample.cellular.modem_shell.cloud_mqtt_only:
    build_only: true
    extra_args: OVERLAY_CONFIG=overlay-cloud_mqtt.conf
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    tags: ci_build
  sample.cellular.modem_shell.cloud_mqtt_rest:
    build_only: true
    extra_configs:
      - CONFIG_MOSH_CLOUD_MQTT=y
      - CONFIG_MOSH_CLOUD_REST=y
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    tags: ci_build
  sample.cellular.modem_shell.cloud_coap_only:
    build_only: true
    extra_args: OVERLAY_CONFIG=overlay-cloud_coap.conf
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    tags: ci_build
  sample.cellular.modem_shell.non_offloading_ip:
    build_only: true
    extra_args: OVERLAY_CONFIG=overlay-non-offloading.conf
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    tags: ci_build
  sample.cellular.modem_shell.nrf7002ek_wifi:
    build_only: true
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    extra_args: SHIELD=nrf7002ek OVERLAY_CONFIG=overlay-nrf7002ek-wifi-scan-only.conf
                DTC_OVERLAY_FILE="nrf9160dk_with_nrf7002ek.overlay"
    tags: ci_build
  sample.cellular.modem_shell.nrf7000ek_wifi:
    build_only: true
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    extra_args: SHIELD=nrf7002ek_nrf7000 OVERLAY_CONFIG=overlay-nrf7002ek-wifi-scan-only.conf
                DTC_OVERLAY_FILE="nrf9160dk_with_nrf7002ek.overlay" CONFIG_WPA_SUPP=n
    tags: ci_build
  sample.cellular.modem_shell.nrf7001ek_wifi:
    build_only: true
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    extra_args: SHIELD=nrf7002ek_nrf7001 OVERLAY_CONFIG=overlay-nrf7002ek-wifi-scan-only.conf
                DTC_OVERLAY_FILE="nrf9160dk_with_nrf7002ek.overlay"
    tags: ci_build
  sample.cellular.modem_shell.nrf7002ek_wifi-debug:
    build_only: true
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    extra_args: SHIELD=nrf7002ek
                OVERLAY_CONFIG="overlay-nrf7002ek-wifi-scan-only.conf;overlay-debug.conf"
                DTC_OVERLAY_FILE="nrf9160dk_with_nrf7002ek.overlay"
    tags: ci_build
  sample.cellular.modem_shell.esp_wifi:
    build_only: true
    extra_args: OVERLAY_CONFIG=overlay-esp-wifi.conf DTC_OVERLAY_FILE="esp_8266_nrf9160ns.overlay"
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    tags: ci_build
  sample.cellular.modem_shell.fota:
    build_only: true
    extra_args: OVERLAY_CONFIG=overlay-app_fota.conf
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    tags: ci_build
  sample.cellular.modem_shell.carrier:
    build_only: true
    extra_args: OVERLAY_CONFIG=overlay-carrier.conf
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    tags: ci_build
  sample.cellular.modem_shell.lwm2m:
    build_only: true
    extra_configs:
      - CONFIG_MOSH_LWM2M_PSK="000102030405060708090a0b0c0d0e0f"
    extra_args: OVERLAY_CONFIG=overlay-lwm2m.conf
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    tags: ci_build
  sample.cellular.modem_shell.lwm2m_bootstrap:
    build_only: true
    extra_configs:
      - CONFIG_MOSH_LWM2M_PSK="000102030405060708090a0b0c0d0e0f"
    extra_args: OVERLAY_CONFIG="overlay-lwm2m.conf;overlay-lwm2m_bootstrap.conf"
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    tags: ci_build
  sample.cellular.modem_shell.lwm2m_pgps:
    build_only: true
    extra_configs:
      - CONFIG_MOSH_LWM2M_PSK="000102030405060708090a0b0c0d0e0f"
    extra_args: OVERLAY_CONFIG="overlay-lwm2m.conf;overlay-lwm2m_pgps.conf;overlay-pgps.conf"
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    tags: ci_build
  sample.cellular.modem_shell.pgps:
    build_only: true
    extra_args: OVERLAY_CONFIG=overlay-pgps.conf
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    tags: ci_build
  sample.cellular.modem_shell.location_service_ext:
    build_only: true
    extra_configs:
      - CONFIG_LOCATION_SERVICE_EXTERNAL=y
    extra_args: OVERLAY_CONFIG=overlay-cloud_mqtt.conf
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    tags: ci_build
  sample.cellular.modem_shell.location_service_ext_pgps_nrf7002ek_wifi:
    build_only: true
    extra_configs:
      - CONFIG_LOCATION_SERVICE_EXTERNAL=y
      - CONFIG_NRF_CLOUD_PGPS_TRANSPORT_NONE=y
    extra_args: SHIELD=nrf7002ek
                OVERLAY_CONFIG="overlay-cloud_mqtt.conf;overlay-pgps.conf;overlay-nrf7002ek-wifi-scan-only.conf"
                DTC_OVERLAY_FILE="nrf9160dk_with_nrf7002ek.overlay"
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    tags: ci_build
  sample.cellular.modem_shell.ppp:
    build_only: true
    extra_args: OVERLAY_CONFIG=overlay-ppp.conf DTC_OVERLAY_FILE="ppp.overlay"
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    tags: ci_build
  sample.cellular.modem_shell.bt:
    build_only: true
    extra_args: OVERLAY_CONFIG=overlay-bt.conf DTC_OVERLAY_FILE="bt.overlay"
    integration_platforms:
      - nrf9160dk_nrf9160_ns
    platform_allow: nrf9160dk_nrf9160_ns
    tags: ci_build
  sample.cellular.modem_shell.rtt:
    build_only: true
    extra_args: OVERLAY_CONFIG=overlay-rtt.conf
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    tags: ci_build
  sample.cellular.modem_shell.thingy91:
    build_only: true
    integration_platforms:
      - thingy91_nrf9160_ns
    platform_allow: thingy91_nrf9160_ns
    tags: ci_build
  sample.cellular.modem_shell.memfault_modem_trace:
    build_only: true
    integration_platforms:
      - nrf9160dk_nrf9160_ns
    platform_allow: nrf9160dk_nrf9160_ns
    extra_args: OVERLAY_CONFIG="overlay-modem-trace-flash.conf;overlay-memfault.conf"
                DTC_OVERLAY_FILE="nrf9160dk_ext_flash.overlay"
    extra_configs:
      - CONFIG_MEMFAULT_NCS_PROJECT_KEY="0123456789abcdef0123456789abcdef"
    tags: ci_build
  sample.cellular.modem_shell.memfault_modem_trace.nrf9161:
    build_only: true
    integration_platforms:
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9161dk_nrf9161_ns
    extra_args: OVERLAY_CONFIG="overlay-modem-trace-flash.conf;overlay-memfault.conf"
                DTC_OVERLAY_FILE="nrf9161dk_ext_flash.overlay"
    extra_configs:
      - CONFIG_MEMFAULT_NCS_PROJECT_KEY="0123456789abcdef0123456789abcdef"
    tags: ci_build
  sample.cellular.modem_shell.memfault_modem_trace_ram:
    build_only: true
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    extra_args: OVERLAY_CONFIG="overlay-modem-trace-ram.conf;overlay-memfault.conf"
    extra_configs:
      - CONFIG_MEMFAULT_NCS_PROJECT_KEY="0123456789abcdef0123456789abcdef"
    tags: ci_build

  # Configurations for different location method combinations
  sample.cellular.modem_shell.location_gnss_wifi_no_cellular:
    build_only: true
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    extra_configs:
      - CONFIG_LOCATION_METHOD_GNSS=y
      - CONFIG_LOCATION_METHOD_CELLULAR=n
      - CONFIG_LOCATION_METHOD_WIFI=y
    extra_args: SHIELD=nrf7002ek OVERLAY_CONFIG=overlay-nrf7002ek-wifi-scan-only.conf
                DTC_OVERLAY_FILE="nrf9160dk_with_nrf7002ek.overlay"
    tags: ci_build
  sample.cellular.modem_shell.location_wifi_cellular_no_gnss:
    build_only: true
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    extra_configs:
      - CONFIG_LOCATION_METHOD_GNSS=n
      - CONFIG_LOCATION_METHOD_CELLULAR=y
      - CONFIG_LOCATION_METHOD_WIFI=y
    extra_args: SHIELD=nrf7002ek OVERLAY_CONFIG=overlay-nrf7002ek-wifi-scan-only.conf
                DTC_OVERLAY_FILE="nrf9160dk_with_nrf7002ek.overlay"
    tags: ci_build
  sample.cellular.modem_shell.location_wifi_no_cellular_no_gnss:
    build_only: true
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    extra_configs:
      - CONFIG_LOCATION_METHOD_GNSS=n
      - CONFIG_LOCATION_METHOD_CELLULAR=n
      - CONFIG_LOCATION_METHOD_WIFI=y
    extra_args: SHIELD=nrf7002ek OVERLAY_CONFIG=overlay-nrf7002ek-wifi-scan-only.conf
                DTC_OVERLAY_FILE="nrf9160dk_with_nrf7002ek.overlay"
    tags: ci_build
  sample.cellular.modem_shell.location_gnss_no_wifi_no_cellular:
    build_only: true
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    extra_configs:
      - CONFIG_LOCATION_METHOD_GNSS=y
      - CONFIG_LOCATION_METHOD_CELLULAR=n
      - CONFIG_LOCATION_METHOD_WIFI=n
    tags: ci_build
  sample.cellular.modem_shell.location_cellular_no_wifi_no_gnss:
    build_only: true
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    extra_configs:
      - CONFIG_LOCATION_METHOD_GNSS=n
      - CONFIG_LOCATION_METHOD_CELLULAR=y
      - CONFIG_LOCATION_METHOD_WIFI=n
    tags: ci_build

  # Configurations with modem UART traces to make sure they fit into image.
  # Basic UART trace configuration is tested in sample.nrf9160.modem_shell.integration_config.
  sample.cellular.modem_shell_modem_uart_trace:
    build_only: true
    extra_args: SNIPPET="nrf91-modem-trace-uart"
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    tags: ci_build
  sample.cellular.modem_shell.non_offloading_ip_modem_uart_trace:
    build_only: true
    extra_args: OVERLAY_CONFIG=overlay-non-offloading.conf SNIPPET="nrf91-modem-trace-uart"
    integration_platforms:
      - nrf9160dk_nrf9160_ns
      - nrf9161dk_nrf9161_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    tags: ci_build
  sample.cellular.modem_shell.thingy91_modem_uart_trace:
    build_only: true
    extra_args: SNIPPET="nrf91-modem-trace-uart"
    integration_platforms:
      - thingy91_nrf9160_ns
    platform_allow: thingy91_nrf9160_ns
    tags: ci_build

  # Configuration which will be used by the CI integration job to verify PRs
  sample.cellular.modem_shell.integration_config:
    build_only: true
    extra_configs:
      - CONFIG_LTE_NETWORK_MODE_LTE_M=y
      - CONFIG_MODEM_ANTENNA_GNSS_EXTERNAL=y
    extra_args: SNIPPET="nrf91-modem-trace-uart"
    integration_platforms:
      - nrf9160dk_nrf9160_ns
    platform_allow: nrf9160dk_nrf9160_ns nrf9161dk_nrf9161_ns
    tags: ci_build
