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:
parent
984e8ac6bc
commit
2b42e1274e
1 changed files with 13 additions and 0 deletions
|
@ -315,6 +315,19 @@ docker_exec ()
|
||||||
stop_zephyr
|
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
|
echo "No sample test corresponding to directory '$1' found" >&2
|
||||||
return 1
|
return 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue