2 Star 0 Fork 0

mirrors_android_source/tinyxml2

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
run-tinyxml2-tests-on-android.sh 873 Bytes
一键复制 编辑 原始数据 按行查看 历史
Elliott Hughes 提交于 2020-10-23 07:48 +08:00 . Run tinyxml2 tests in presubmit.
#!/bin/bash
# Copy the tests across.
adb sync
if tty -s; then
green="\033[1;32m"
red="\033[1;31m"
plain="\033[0m"
else
green=""
red=""
plain=""
fi
failures=0
check_failure() {
if [ $? -eq 0 ]; then
echo -e "${green}[PASS]${plain}"
else
failures=$(($failures+1))
echo -e "${red}[FAIL]${plain}"
fi
}
if [ -e "$ANDROID_PRODUCT_OUT/data/nativetest/tinyxml2-xmltest/tinyxml2-xmltest" ]; then
adb shell "cd /data/nativetest/tinyxml2-xmltest; ./tinyxml2-xmltest"
check_failure
fi
if [ -e "$ANDROID_PRODUCT_OUT/data/nativetest64/tinyxml2-xmltest/tinyxml2-xmltest" ]; then
adb shell "cd /data/nativetest64/tinyxml2-xmltest; ./tinyxml2-xmltest"
check_failure
fi
echo "_________________________________________________________________________"
echo
if [ $failures -ne 0 ]; then
echo -e "${red}FAILED${plain}: $failures"
fi
exit $failures
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_android_source/tinyxml2.git
git@gitee.com:mirrors_android_source/tinyxml2.git
mirrors_android_source
tinyxml2
tinyxml2
main

搜索帮助