diff --git a/tests/subsys/mgmt/mcumgr/transport_lorawan/CMakeLists.txt b/tests/subsys/mgmt/mcumgr/transport_lorawan/CMakeLists.txt new file mode 100644 index 00000000000..931087d5455 --- /dev/null +++ b/tests/subsys/mgmt/mcumgr/transport_lorawan/CMakeLists.txt @@ -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}) diff --git a/tests/subsys/mgmt/mcumgr/transport_lorawan/lorawan_all.conf b/tests/subsys/mgmt/mcumgr/transport_lorawan/lorawan_all.conf new file mode 100644 index 00000000000..69f947e987a --- /dev/null +++ b/tests/subsys/mgmt/mcumgr/transport_lorawan/lorawan_all.conf @@ -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 diff --git a/tests/subsys/mgmt/mcumgr/transport_lorawan/prj.conf b/tests/subsys/mgmt/mcumgr/transport_lorawan/prj.conf new file mode 100644 index 00000000000..a69e123c740 --- /dev/null +++ b/tests/subsys/mgmt/mcumgr/transport_lorawan/prj.conf @@ -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 diff --git a/tests/subsys/mgmt/mcumgr/transport_lorawan/src/main.c b/tests/subsys/mgmt/mcumgr/transport_lorawan/src/main.c new file mode 100644 index 00000000000..999d07a7c74 --- /dev/null +++ b/tests/subsys/mgmt/mcumgr/transport_lorawan/src/main.c @@ -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 diff --git a/tests/subsys/mgmt/mcumgr/transport_lorawan/testcase.yaml b/tests/subsys/mgmt/mcumgr/transport_lorawan/testcase.yaml new file mode 100644 index 00000000000..bdc7c72ec22 --- /dev/null +++ b/tests/subsys/mgmt/mcumgr/transport_lorawan/testcase.yaml @@ -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"