Merge pull request #5893 from taosdata/xiaoping/add_test_case
enable apitest and add sleep time
This commit is contained in:
commit
8f53fcbe57
|
@ -64,7 +64,7 @@ function runQueryPerfTest {
|
||||||
[ -f $PERFORMANCE_TEST_REPORT ] && rm $PERFORMANCE_TEST_REPORT
|
[ -f $PERFORMANCE_TEST_REPORT ] && rm $PERFORMANCE_TEST_REPORT
|
||||||
nohup $WORK_DIR/TDengine/debug/build/bin/taosd -c /etc/taosperf/ > /dev/null 2>&1 &
|
nohup $WORK_DIR/TDengine/debug/build/bin/taosd -c /etc/taosperf/ > /dev/null 2>&1 &
|
||||||
echoInfo "Wait TDengine to start"
|
echoInfo "Wait TDengine to start"
|
||||||
sleep 120
|
sleep 300
|
||||||
echoInfo "Run Performance Test"
|
echoInfo "Run Performance Test"
|
||||||
cd $WORK_DIR/TDengine/tests/pytest
|
cd $WORK_DIR/TDengine/tests/pytest
|
||||||
|
|
||||||
|
|
|
@ -481,14 +481,14 @@ if [ "$2" != "sim" ] && [ "$2" != "python" ] && [ "$2" != "jdbc" ] && [ "$2" !=
|
||||||
totalExamplePass=0
|
totalExamplePass=0
|
||||||
|
|
||||||
echo "Running tests"
|
echo "Running tests"
|
||||||
# ./apitest > /dev/null 2>&1
|
./apitest > /dev/null 2>&1
|
||||||
# if [ $? != "0" ]; then
|
if [ $? != "0" ]; then
|
||||||
# echo "apitest failed"
|
echo "apitest failed"
|
||||||
# totalExampleFailed=`expr $totalExampleFailed + 1`
|
totalExampleFailed=`expr $totalExampleFailed + 1`
|
||||||
# else
|
else
|
||||||
# echo "apitest pass"
|
echo "apitest pass"
|
||||||
# totalExamplePass=`expr $totalExamplePass + 1`
|
totalExamplePass=`expr $totalExamplePass + 1`
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
./prepare 127.0.0.1 > /dev/null 2>&1
|
./prepare 127.0.0.1 > /dev/null 2>&1
|
||||||
if [ $? != "0" ]; then
|
if [ $? != "0" ]; then
|
||||||
|
|
Loading…
Reference in New Issue