2 Star 2 Fork 0

ZCAN-IOT/zephyr

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-test.sh 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
# Copyright (c) 2020 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
if [ -z "$RUNNING_FROM_MAIN_SCRIPT" ]; then
echo "Do not run this script directly!"
echo "Run $ZEPHYR_BASE/scripts/net/run-sample-tests.sh instead."
exit 1
fi
# First the non-tls version
echo "HTTP client test"
start_configuration "--ip=192.0.2.2 --ip6=2001:db8::2" || return $?
start_docker "/usr/local/bin/http-server.py" || return $?
start_zephyr "$overlay" "-DCONFIG_NET_SAMPLE_SEND_ITERATIONS=5"
wait_zephyr
result=$?
stop_docker
if [ $result -ne 0 ]; then
return $result
fi
return $result
# If everything is ok so far, do the TLS version
echo "HTTPS client test"
if [ -n "$zephyr_overlay" ]; then
overlay="${zephyr_overlay};overlay-tls.conf"
else
overlay="-DOVERLAY_CONFIG=overlay-tls.conf"
fi
start_configuration "--ip=192.0.2.2 --ip6=2001:db8::2" || return $?
start_docker "/usr/local/bin/https-server.py 192.0.2.2" \
"/usr/local/bin/https-server.py 2001:db8::2" || return $?
start_zephyr "$overlay" "-DCONFIG_NET_SAMPLE_SEND_ITERATIONS=5"
wait_zephyr
result=$?
stop_docker
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ZCAN-IOT/zephyr.git
git@gitee.com:ZCAN-IOT/zephyr.git
ZCAN-IOT
zephyr
zephyr
main

搜索帮助