代码拉取完成,页面将自动刷新
#!/bin/bash
result=0
function run_test {
printf '\e[0;36m'
echo "running test: $command $@"
printf '\e[0m'
$command "$@"
status=$?
if [ $status -ne 0 ]; then
printf '\e[0;31m'
echo "test failed: $command $@"
printf '\e[0m'
echo
result=1
else
printf '\e[0;32m'
echo OK
printf '\e[0m'
echo
fi
return 0
}
rm src/*.gc*
run_test ./autogen.sh
run_test ./configure --enable-debug
make clean
run_test make
run_test src/chinadns -h
run_test src/chinadns -V
run_test tests/test.py -a '-c chnroute.txt -l iplist.txt' -t tests/google.com
run_test tests/test.py -a '-c chnroute.txt -l iplist.txt' -t tests/facebook.com
run_test tests/test.py -a '-c chnroute.txt -s 114.114.114.114,8.8.8.8 -l iplist.txt' -t tests/google.com
run_test tests/test.py -a '-c chnroute.txt -y 0.5 -l iplist.txt' -t tests/google.com
run_test tests/test.py -a '-c chnroute.txt -b 0.0.0.0 -l iplist.txt' -t tests/google.com
run_test tests/test.py -a '-c chnroute.txt -l iplist.txt' -t tests/twitter.com
run_test tests/test.py -a '-d -c chnroute.txt -l iplist.txt' -t tests/twitter.com
run_test tests/test.py -a '-c chnroute.txt' -t tests/twitter.com
run_test tests/test.py -a '-m -c chnroute.txt' -t tests/twitter.com
run_test tests/test.py -a '-c chnroute.txt -l iplist.txt' -t tests/taobao.com
run_test tests/test.py -a '-d -c chnroute.txt -l iplist.txt' -t tests/taobao.com
run_test tests/test.py -a '-c chnroute.txt' -t tests/taobao.com
run_test tests/test.py -a '-m -c chnroute.txt' -t tests/taobao.com
run_test tests/test.py -a '-c chnroute.txt -l iplist.txt' -t tests/x_8888
run_test tests/test.py -a '-d -c chnroute.txt -l iplist.txt' -t tests/x_8888
run_test tests/test.py -a '-c chnroute.txt' -t tests/x_8888
run_test tests/test.py -a '-m -c chnroute.txt' -t tests/x_8888
gcov src/*.c
rm src/*.html
cd src && gcovr -r . --html --html-details -o index.html
gcovr -r . | grep TOTAL | rev | cut -d' ' -f 1 | rev > /tmp/chinadns-coverage
exit $result
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。