提交 3631d276 编写于 作者: P Ping Xiao

update test script

上级 b5051b03
...@@ -463,10 +463,10 @@ if [ "$2" != "sim" ] && [ "$2" != "python" ] && [ "$2" != "jdbc" ] && [ "$2" != ...@@ -463,10 +463,10 @@ if [ "$2" != "sim" ] && [ "$2" != "python" ] && [ "$2" != "jdbc" ] && [ "$2" !=
echo "Running tests" echo "Running tests"
./apitest > /dev/null 2>&1 ./apitest > /dev/null 2>&1
if [ $? != "0" ]; then if [ $? != "0" ]; then
echo "prepare failed" echo "apitest failed"
totalExampleFailed=`expr $totalExampleFailed + 1` totalExampleFailed=`expr $totalExampleFailed + 1`
else else
echo "prepare pass" echo "apitest pass"
totalExamplePass=`expr $totalExamplePass + 1` totalExamplePass=`expr $totalExamplePass + 1`
fi fi
...@@ -481,19 +481,19 @@ if [ "$2" != "sim" ] && [ "$2" != "python" ] && [ "$2" != "jdbc" ] && [ "$2" != ...@@ -481,19 +481,19 @@ if [ "$2" != "sim" ] && [ "$2" != "python" ] && [ "$2" != "jdbc" ] && [ "$2" !=
./subscribe -test > /dev/null 2>&1 ./subscribe -test > /dev/null 2>&1
if [ $? != "0" ]; then if [ $? != "0" ]; then
echo "prepare failed" echo "subscribe failed"
totalExampleFailed=`expr $totalExampleFailed + 1` totalExampleFailed=`expr $totalExampleFailed + 1`
else else
echo "prepare pass" echo "subscribe pass"
totalExamplePass=`expr $totalExamplePass + 1` totalExamplePass=`expr $totalExamplePass + 1`
fi fi
yes |./asyncdemo 127.0.0.1 test 1000 10 > /dev/null 2>&1 yes |./asyncdemo 127.0.0.1 test 1000 10 > /dev/null 2>&1
if [ $? != "0" ]; then if [ $? != "0" ]; then
echo "prepare failed" echo "asyncdemo failed"
totalExampleFailed=`expr $totalExampleFailed + 1` totalExampleFailed=`expr $totalExampleFailed + 1`
else else
echo "prepare pass" echo "asyncdemo pass"
totalExamplePass=`expr $totalExamplePass + 1` totalExamplePass=`expr $totalExamplePass + 1`
fi fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册