Skip to content

Commit 5c5978a

Browse files
committed
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 <[email protected]>
1 parent 714894e commit 5c5978a

File tree

5 files changed

+73
-0
lines changed

5 files changed

+73
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#
2+
# Copyright (c) 2022 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
cmake_minimum_required(VERSION 3.20.0)
8+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
9+
project(all_options)
10+
11+
FILE(GLOB app_sources
12+
src/*.c
13+
)
14+
15+
target_sources(app PRIVATE ${app_sources})
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#
2+
# Copyright (c) 2024 Jamie McCrae
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
CONFIG_MCUMGR_TRANSPORT_LORAWAN_CONFIRMED_UPLINKS=y
8+
CONFIG_MCUMGR_TRANSPORT_LORAWAN_REASSEMBLY=y
9+
CONFIG_MCUMGR_TRANSPORT_LORAWAN_POLL_FOR_DATA=y
10+
CONFIG_MCUMGR_TRANSPORT_LORAWAN_FRAGMENTED_UPLINKS=y
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#
2+
# Copyright (c) 2024 Jamie McCrae
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
CONFIG_ZTEST=y
8+
CONFIG_NET_BUF=y
9+
CONFIG_ZCBOR=y
10+
CONFIG_MCUMGR=y
11+
CONFIG_SPI=y
12+
CONFIG_LORA=y
13+
CONFIG_LORAWAN=y
14+
CONFIG_LORAMAC_REGION_EU868=y
15+
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=3000
16+
CONFIG_MCUMGR_TRANSPORT_LORAWAN=y
17+
CONFIG_MCUMGR_TRANSPORT_LORAWAN_CONFIRMED_UPLINKS=n
18+
CONFIG_MCUMGR_TRANSPORT_LORAWAN_REASSEMBLY=n
19+
CONFIG_MCUMGR_TRANSPORT_LORAWAN_POLL_FOR_DATA=n
20+
CONFIG_MCUMGR_TRANSPORT_LORAWAN_FRAGMENTED_UPLINKS=n
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright (c) 2024 Jamie McCrae
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#if !defined(CONFIG_MCUMGR_TRANSPORT_LORAWAN)
8+
#error "Expected Kconfig option CONFIG_MCUMGR_TRANSPORT_LORAWAN not enabled"
9+
#endif
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#
2+
# Copyright (c) 2024 Jamie McCrae
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
common:
7+
platform_allow: rm1xx_dvk
8+
tags:
9+
- mgmt
10+
- mcumgr
11+
- all_options
12+
- transport
13+
- lorawan
14+
build_only: true
15+
tests:
16+
mgmt.mcumgr.transport.lorawan: {}
17+
mgmt.mcumgr.transport.lorawan.all:
18+
extra_args:
19+
- EXTRA_CONF_FILE="lorawan_all.conf"

0 commit comments

Comments
 (0)