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:
parent
973ba91487
commit
d9312524eb
5 changed files with 73 additions and 0 deletions
15
tests/subsys/mgmt/mcumgr/transport_lorawan/CMakeLists.txt
Normal file
15
tests/subsys/mgmt/mcumgr/transport_lorawan/CMakeLists.txt
Normal 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})
|
10
tests/subsys/mgmt/mcumgr/transport_lorawan/lorawan_all.conf
Normal file
10
tests/subsys/mgmt/mcumgr/transport_lorawan/lorawan_all.conf
Normal 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
|
20
tests/subsys/mgmt/mcumgr/transport_lorawan/prj.conf
Normal file
20
tests/subsys/mgmt/mcumgr/transport_lorawan/prj.conf
Normal 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
|
9
tests/subsys/mgmt/mcumgr/transport_lorawan/src/main.c
Normal file
9
tests/subsys/mgmt/mcumgr/transport_lorawan/src/main.c
Normal 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
|
19
tests/subsys/mgmt/mcumgr/transport_lorawan/testcase.yaml
Normal file
19
tests/subsys/mgmt/mcumgr/transport_lorawan/testcase.yaml
Normal 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"
|
Loading…
Add table
Add a link
Reference in a new issue