[TD-2986]<test>: add demo example into CI

This commit is contained in:
Ping Xiao 2021-04-14 11:04:30 +08:00
parent a20fe8d284
commit e3ac8a0523
2 changed files with 10 additions and 1 deletions

View File

@ -66,7 +66,7 @@ int main(int argc, char *argv[]) {
printf("failed to connect to server, reason:%s\n", "null taos"/*taos_errstr(taos)*/);
exit(1);
}
for (int i = 0; i < 4000000; i++) {
for (int i = 0; i < 100; i++) {
Test(taos, qstr, i);
}
taos_close(taos);

View File

@ -516,6 +516,15 @@ if [ "$2" != "sim" ] && [ "$2" != "python" ] && [ "$2" != "jdbc" ] && [ "$2" !=
echo "asyncdemo pass"
totalExamplePass=`expr $totalExamplePass + 1`
fi
./demo 127.0.0.1 > /dev/null 2>&1
if [ $? != "0" ]; then
echo "demo failed"
totalExampleFailed=`expr $totalExampleFailed + 1`
else
echo "demo pass"
totalExamplePass=`expr $totalExamplePass + 1`
fi
if [ "$totalExamplePass" -gt "0" ]; then
echo -e "\n${GREEN} ### Total $totalExamplePass examples succeed! ### ${NC}"