4 Star 2 Fork 0

Gitee 极速下载/zerovm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: http://github.com/zerovm/zerovm
克隆/下载
ftests.sh 765 Bytes
一键复制 编辑 原始数据 按行查看 历史
Constantine Peresypkin 提交于 2013-12-01 11:02 . fix for #246
#!/bin/bash
errors=0
OUTPUT=$(mktemp)
trap "{ rm -rf $OUTPUT; exit $?; }" SIGINT SIGTERM EXIT
# Verify that the ZEROVM_ROOT var is set:
if [ -z "${ZEROVM_ROOT}" ]; then
echo "Error: ZEROVM_ROOT variable is not set"
exit 1
fi
cd $ZEROVM_ROOT/tests/functional/include
make -s clean all
for i in $(find $ZEROVM_ROOT/tests -mindepth 1 -type d); do
cd $i
if [ -x ./test.sh ]; then
./test.sh | tee "${OUTPUT}"
# check for and count failures
if [[ "$?" -ne 0 || $(grep "failed" "${OUTPUT}") ]]; then
errors=$(($errors + 1))
fi
fi
done
if [ $errors -gt 0 ]; then
# If any of the tests failed,
# make sure we don't falsely return a 0 exit status
echo "There were $errors errors"
exit 1
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/zerovm.git
git@gitee.com:mirrors/zerovm.git
mirrors
zerovm
zerovm
master

搜索帮助