Skip to content

Commit 5f20389

Browse files
committed
[nrf fromtree] tests: net: lib: mqtt: v3_1_1: Add test variant with MQTT 5.0 enabled
Add test variant which enables MQTT 5.0 support. MQTT 3.1.1 should still work just fine in such case, so it needs to be verified that's the case. Signed-off-by: Robert Lubos <[email protected]> (cherry picked from commit 08f8e2f)
1 parent ef311e1 commit 5f20389

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

tests/net/lib/mqtt/v3_1_1/mqtt_client/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ CONFIG_NET_PKT_RX_COUNT=16
1616
CONFIG_NET_TCP=y
1717
CONFIG_NET_TCP_TIME_WAIT_DELAY=0
1818
CONFIG_MQTT_LIB=y
19+
CONFIG_MQTT_VERSION_3_1_1=y
1920

2021
CONFIG_MAIN_STACK_SIZE=2048
2122
CONFIG_ZTEST_STACK_SIZE=2048

tests/net/lib/mqtt/v3_1_1/mqtt_client/testcase.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ tests:
1111
net.mqtt.client.preempt:
1212
extra_configs:
1313
- CONFIG_NET_TC_THREAD_PREEMPTIVE=y
14+
net.mqtt.client.mqtt_5_0:
15+
extra_configs:
16+
- CONFIG_MQTT_VERSION_5_0=y

tests/net/lib/mqtt/v3_1_1/mqtt_packet/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ CONFIG_TEST_RANDOM_GENERATOR=y
88

99
# enable the MQTT lib
1010
CONFIG_MQTT_LIB=y
11+
CONFIG_MQTT_VERSION_3_1_1=y
1112
CONFIG_ZTEST=y
1213
CONFIG_TEST_USERSPACE=y
1314
CONFIG_MAIN_STACK_SIZE=1280
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
common:
2+
tags:
3+
- mqtt
4+
- net
5+
- userspace
6+
min_ram: 16
27
depends_on: netif
38
tests:
4-
net.mqtt.packet:
5-
min_ram: 16
6-
tags:
7-
- mqtt
8-
- net
9-
- userspace
9+
net.mqtt.packet: {}
10+
net.mqtt.packet.mqtt_5_0:
11+
extra_configs:
12+
- CONFIG_MQTT_VERSION_5_0=y

0 commit comments

Comments
 (0)