tests: net: lwm2m: Add OMA TLV content writer tests
Add unit tests for LwM2M OMA TLV conent encoder/decoder. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
parent
48fd29a081
commit
735fd86c0e
6 changed files with 1200 additions and 8 deletions
12
tests/net/lib/lwm2m/content_oma_tlv/CMakeLists.txt
Normal file
12
tests/net/lib/lwm2m/content_oma_tlv/CMakeLists.txt
Normal file
|
@ -0,0 +1,12 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
cmake_minimum_required(VERSION 3.20.0)
|
||||
|
||||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
project(lwm2m_content_oma_tlv)
|
||||
|
||||
target_include_directories(app PRIVATE
|
||||
${ZEPHYR_BASE}/subsys/net/lib/lwm2m
|
||||
)
|
||||
FILE(GLOB app_sources src/*.c)
|
||||
target_sources(app PRIVATE ${app_sources})
|
9
tests/net/lib/lwm2m/content_oma_tlv/prj.conf
Normal file
9
tests/net/lib/lwm2m/content_oma_tlv/prj.conf
Normal file
|
@ -0,0 +1,9 @@
|
|||
CONFIG_NETWORKING=y
|
||||
CONFIG_NET_TEST=y
|
||||
CONFIG_ZTEST=y
|
||||
|
||||
CONFIG_ENTROPY_GENERATOR=y
|
||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||
CONFIG_NEWLIB_LIBC=y
|
||||
|
||||
CONFIG_LWM2M=y
|
1166
tests/net/lib/lwm2m/content_oma_tlv/src/main.c
Normal file
1166
tests/net/lib/lwm2m/content_oma_tlv/src/main.c
Normal file
File diff suppressed because it is too large
Load diff
5
tests/net/lib/lwm2m/content_oma_tlv/testcase.yaml
Normal file
5
tests/net/lib/lwm2m/content_oma_tlv/testcase.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
common:
|
||||
depends_on: netif
|
||||
tests:
|
||||
net.lwm2m.content_oma_tlv:
|
||||
tags: lwm2m net
|
Loading…
Add table
Add a link
Reference in a new issue