代码拉取完成,页面将自动刷新
#!/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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。