1# Copyright (c) 2020 Intel Corporation
2# SPDX-License-Identifier: Apache-2.0
3
4if [ -z "$RUNNING_FROM_MAIN_SCRIPT" ]; then
5    echo "Do not run this script directly!"
6    echo "Run $ZEPHYR_BASE/scripts/net/run-sample-tests.sh instead."
7    exit 1
8fi
9
10start_configuration "--ip=192.0.2.1 --ip6=2001:db8::1" || return $?
11start_docker "/net-tools/echo-server -i eth0" || return $?
12
13start_zephyr "$overlay" "-DCONFIG_NET_SAMPLE_SEND_ITERATIONS=10"
14
15wait_zephyr
16result=$?
17
18stop_docker
19