diff --git a/scripts/net/run-sample-tests.sh b/scripts/net/run-sample-tests.sh index 889d3234dd..6b5c0986ec 100755 --- a/scripts/net/run-sample-tests.sh +++ b/scripts/net/run-sample-tests.sh @@ -10,6 +10,7 @@ docker_pid=0 configuration="" result=0 sample="" +zephyr_overlay="" check_dirs () { @@ -261,11 +262,17 @@ wait_docker () docker_exec () { local result=0 + local overlay="" + + if [ -n "$zephyr_overlay" ] + then + overlay="-DOVERLAY_CONFIG=$zephyr_overlay" + fi case "$1" in echo_server) start_configuration - start_zephyr + start_zephyr "$overlay" start_docker \ "/net-tools/echo-client -i eth0 192.0.2.1" \ @@ -282,7 +289,8 @@ docker_exec () start_docker \ "/net-tools/echo-server -i eth0" - start_zephyr "-DCONFIG_NET_SAMPLE_SEND_ITERATIONS=10" + start_zephyr "$overlay" \ + "-DCONFIG_NET_SAMPLE_SEND_ITERATIONS=10" wait_zephyr result=$? @@ -343,6 +351,8 @@ usage () echo "-N|--net-tools-dir