From 2b42e1274ef6a3b2a1993a3d1ac2e76f4eb7b70d Mon Sep 17 00:00:00 2001 From: Patrik Flykt Date: Fri, 13 Mar 2020 10:53:10 +0200 Subject: [PATCH] scripts: net: Support testing of mqtt_publisher With net-tools and the mqtt_publisher sample updated, add support for running the sample with the network sample test script. Signed-off-by: Patrik Flykt --- scripts/net/run-sample-tests.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/net/run-sample-tests.sh b/scripts/net/run-sample-tests.sh index 522a0e5eb1e..09e16cc890e 100755 --- a/scripts/net/run-sample-tests.sh +++ b/scripts/net/run-sample-tests.sh @@ -315,6 +315,19 @@ docker_exec () stop_zephyr ;; + mqtt_publisher) + start_configuration || return $? + start_docker "/usr/local/sbin/mosquitto -v -p 1883 + -c /usr/local/etc/mosquitto.conf" || return $? + + start_zephyr -DOVERLAY_CONFIG=overlay-sample.conf "$overlay" + + wait_zephyr + result=$? + + stop_docker + ;; + *) echo "No sample test corresponding to directory '$1' found" >&2 return 1