1 Star 0 Fork 52

yueryoufeng/runc

forked from src-openEuler/runc 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test_unit.sh 649 Bytes
一键复制 编辑 原始数据 按行查看 历史
songyanting 提交于 2022-01-26 20:31 . sync patches
#!/bin/bash
# Copyright (c) Huawei Technologies Co., Ltd. 2021. All rights reserved.
# Description: This shell script is used to do unit test.
# Author: xiadanni1@huawei.com
# Create: 2021-12-20
test_log=${PWD}/unit_test_log
rm -rf "${test_log}"
touch "${test_log}"
while IPF= read -r line
do
echo "Start to test: ${line}"
go test -timeout 300s -v "${line}" >> "${test_log}"
cat "${test_log}" | grep -E -- "--- FAIL:|^FAIL"
if [ $? -eq 0 ]; then
echo "Testing failed... Please check ${test_log}"
exit 1
fi
tail -n 1 "${test_log}"
done < "unit_test_list"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yinyongkang/runc.git
git@gitee.com:yinyongkang/runc.git
yinyongkang
runc
runc
master

搜索帮助