update test script

This commit is contained in:
Ping Xiao 2021-03-31 11:35:15 +08:00
parent b5051b033f
commit 3631d276f2
1 changed files with 6 additions and 6 deletions

View File

@ -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" !=
./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