Skip to content

Commit

Permalink
tests: net: mqtt_publisher: Allow compilation in every platform
Browse files Browse the repository at this point in the history
Fixes the compile errors in various platforms like:
* sam_e70_xplained (too few network buffers)
* galileo, cc3220sf_launchxl and mps2_an385 (missing random number
  generator configuration options)

Fixes #15878

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  • Loading branch information
jukkar authored and nashif committed May 4, 2019
1 parent c9f4bb6 commit 758a246
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion tests/net/lib/mqtt_publisher/boards/cc3220sf_launchxl.conf
Expand Up @@ -2,7 +2,6 @@
CONFIG_NET_IPV4=y
CONFIG_NET_IPV6=n
CONFIG_NET_SOCKETS=y
CONFIG_TEST_RANDOM_GENERATOR=y

# Enable SimpleLink WiFi Driver and Socket Offload
CONFIG_WIFI=y
Expand Down
3 changes: 3 additions & 0 deletions tests/net/lib/mqtt_publisher/prj_tls.conf
@@ -1,6 +1,9 @@
CONFIG_NETWORKING=y
CONFIG_NET_TCP=y
CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_TIMER_RANDOM_GENERATOR=y

CONFIG_NET_ARP=y
CONFIG_NET_L2_ETHERNET=y
CONFIG_NET_LOG=y
Expand Down
6 changes: 5 additions & 1 deletion tests/net/lib/mqtt_publisher/testcase.yaml
Expand Up @@ -2,9 +2,13 @@ common:
tags: net mqtt
harness: net
depends_on: netif
platform_whitelist: native_posix qemu_x86 qemu_cortex_m3
tests:
net.mqtt:
min_ram: 16
net.mqtt.tls:
extra_args: CONF_FILE="prj_tls.conf"
extra_configs:
- CONFIG_NET_PKT_RX_COUNT=20
- CONFIG_NET_PKT_TX_COUNT=20
- CONFIG_NET_BUF_RX_COUNT=20
- CONFIG_NET_BUF_TX_COUNT=20

0 comments on commit 758a246

Please sign in to comment.