tests: mgmt: mcumgr: Add transport_lorawan test

Adds a test to ensure that the LoRaWAN MCUmgr transport builds with
all options enabled and all options disabled

Signed-off-by: Jamie McCrae <spam@helper3000.net>
This commit is contained in:
Jamie McCrae 2024-10-20 10:39:50 +01:00 committed by Alberto Escolar
commit d9312524eb
5 changed files with 73 additions and 0 deletions

View file

@ -0,0 +1,15 @@
#
# Copyright (c) 2022 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: Apache-2.0
#
cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(all_options)
FILE(GLOB app_sources
src/*.c
)
target_sources(app PRIVATE ${app_sources})

View file

@ -0,0 +1,10 @@
#
# Copyright (c) 2024 Jamie McCrae
#
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_MCUMGR_TRANSPORT_LORAWAN_CONFIRMED_UPLINKS=y
CONFIG_MCUMGR_TRANSPORT_LORAWAN_REASSEMBLY=y
CONFIG_MCUMGR_TRANSPORT_LORAWAN_POLL_FOR_DATA=y
CONFIG_MCUMGR_TRANSPORT_LORAWAN_FRAGMENTED_UPLINKS=y

View file

@ -0,0 +1,20 @@
#
# Copyright (c) 2024 Jamie McCrae
#
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_ZTEST=y
CONFIG_NET_BUF=y
CONFIG_ZCBOR=y
CONFIG_MCUMGR=y
CONFIG_SPI=y
CONFIG_LORA=y
CONFIG_LORAWAN=y
CONFIG_LORAMAC_REGION_EU868=y
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=3000
CONFIG_MCUMGR_TRANSPORT_LORAWAN=y
CONFIG_MCUMGR_TRANSPORT_LORAWAN_CONFIRMED_UPLINKS=n
CONFIG_MCUMGR_TRANSPORT_LORAWAN_REASSEMBLY=n
CONFIG_MCUMGR_TRANSPORT_LORAWAN_POLL_FOR_DATA=n
CONFIG_MCUMGR_TRANSPORT_LORAWAN_FRAGMENTED_UPLINKS=n

View file

@ -0,0 +1,9 @@
/*
* Copyright (c) 2024 Jamie McCrae
*
* SPDX-License-Identifier: Apache-2.0
*/
#if !defined(CONFIG_MCUMGR_TRANSPORT_LORAWAN)
#error "Expected Kconfig option CONFIG_MCUMGR_TRANSPORT_LORAWAN not enabled"
#endif

View file

@ -0,0 +1,19 @@
#
# Copyright (c) 2024 Jamie McCrae
#
# SPDX-License-Identifier: Apache-2.0
#
common:
platform_allow: rm1xx_dvk
tags:
- mgmt
- mcumgr
- all_options
- transport
- lorawan
build_only: true
tests:
mgmt.mcumgr.transport.lorawan: {}
mgmt.mcumgr.transport.lorawan.all:
extra_args:
- EXTRA_CONF_FILE="lorawan_all.conf"