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 <patrik.flykt@intel.com>
This commit is contained in:
Patrik Flykt 2020-03-13 10:53:10 +02:00 committed by Jukka Rissanen
parent 984e8ac6bc
commit 2b42e1274e

View file

@ -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