1# Copyright (c) 2023 Nordic Semiconductor ASA 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 10IP="--ip=192.0.2.2 --ip6=2001:db8::2" 11FWD="-p 8080:8080 -p 8081:8081 -p 5683:5683/udp" 12 13start_configuration "$IP $FWD" || return $? 14start_docker "/net-tools/start-leshan.sh" || return $? 15 16twister -p native_sim -T ./ --enable-slow -vv 17 18result=$? 19 20stop_docker 21