Skip to content

Commit 5b09052

Browse files
committed
[nrf fromtree] tests: net: mqtt: Add MQTT 5.0 packet encoder/decoder tests
Add new test suite covering MQTT 5.0 packet format. Signed-off-by: Robert Lubos <[email protected]> (cherry picked from commit 347653e)
1 parent 25834ff commit 5b09052

File tree

4 files changed

+2096
-0
lines changed

4 files changed

+2096
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
cmake_minimum_required(VERSION 3.20.0)
4+
5+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
6+
project(mqtt_5_packet)
7+
8+
target_include_directories(app PRIVATE
9+
${ZEPHYR_BASE}/subsys/net/lib/mqtt
10+
)
11+
FILE(GLOB app_sources src/*.c)
12+
target_sources(app PRIVATE ${app_sources})
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CONFIG_ZTEST=y
2+
CONFIG_NET_TEST=y
3+
CONFIG_NETWORKING=y
4+
CONFIG_ENTROPY_GENERATOR=y
5+
CONFIG_TEST_RANDOM_GENERATOR=y
6+
CONFIG_MQTT_LIB=y
7+
CONFIG_MQTT_VERSION_5_0=y

0 commit comments

Comments
 (0)