Merge branch '3.0' of github.com:taosdata/TDengine into szhou/table-count-scan
This commit is contained in:
commit
f758c3b062
|
@ -418,7 +418,7 @@
|
||||||
,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/fsync.py
|
,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/fsync.py
|
||||||
,,n,system-test,python3 ./test.py -f 0-others/compatibility.py
|
,,n,system-test,python3 ./test.py -f 0-others/compatibility.py
|
||||||
,,y,system-test,./pytest.sh python3 ./test.py -f 1-insert/alter_database.py
|
,,y,system-test,./pytest.sh python3 ./test.py -f 1-insert/alter_database.py
|
||||||
,,y,system-test,./pytest.sh python3 ./test.py -f 1-insert/influxdb_line_taosc_insert.py
|
#,,y,system-test,./pytest.sh python3 ./test.py -f 1-insert/influxdb_line_taosc_insert.py
|
||||||
,,y,system-test,./pytest.sh python3 ./test.py -f 1-insert/opentsdb_telnet_line_taosc_insert.py
|
,,y,system-test,./pytest.sh python3 ./test.py -f 1-insert/opentsdb_telnet_line_taosc_insert.py
|
||||||
,,y,system-test,./pytest.sh python3 ./test.py -f 1-insert/opentsdb_json_taosc_insert.py
|
,,y,system-test,./pytest.sh python3 ./test.py -f 1-insert/opentsdb_json_taosc_insert.py
|
||||||
,,y,system-test,./pytest.sh python3 ./test.py -f 1-insert/test_stmt_muti_insert_query.py
|
,,y,system-test,./pytest.sh python3 ./test.py -f 1-insert/test_stmt_muti_insert_query.py
|
||||||
|
|
|
@ -4,7 +4,7 @@ import sys
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
from pathlib import Path
|
||||||
from util.log import *
|
from util.log import *
|
||||||
from util.sql import *
|
from util.sql import *
|
||||||
from util.cases import *
|
from util.cases import *
|
||||||
|
@ -13,12 +13,12 @@ from util.dnodes import TDDnodes
|
||||||
from util.dnodes import TDDnode
|
from util.dnodes import TDDnode
|
||||||
from util.cluster import *
|
from util.cluster import *
|
||||||
|
|
||||||
|
BASEVERSION = "3.0.1.8"
|
||||||
class TDTestCase:
|
class TDTestCase:
|
||||||
def caseDescription(self):
|
def caseDescription(self):
|
||||||
'''
|
'''
|
||||||
3.0 data compatibility test
|
3.0 data compatibility test
|
||||||
case1: basedata version is 3.0.1.0
|
case1: basedata version is 3.0.1.8
|
||||||
'''
|
'''
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -62,12 +62,20 @@ class TDTestCase:
|
||||||
# os.system(f"mv {self.getBuildPath()}/build/lib/libtaos.so.1 {self.getBuildPath()}/build/lib/libtaos.so.1_bak ")
|
# os.system(f"mv {self.getBuildPath()}/build/lib/libtaos.so.1 {self.getBuildPath()}/build/lib/libtaos.so.1_bak ")
|
||||||
|
|
||||||
packagePath = "/usr/local/src/"
|
packagePath = "/usr/local/src/"
|
||||||
packageName="TDengine-server-3.0.1.0-Linux-x64.tar.gz"
|
|
||||||
os.system(f"cd {packagePath} && tar xvf TDengine-server-3.0.1.0-Linux-x64.tar.gz && cd TDengine-server-3.0.1.0 && ./install.sh -e no " )
|
packageName = "TDengine-server-"+ BASEVERSION + "-Linux-x64.tar.gz"
|
||||||
|
packageTPath = packageName.split("-Linux-")[0]
|
||||||
|
my_file = Path(f"{packagePath}/{packageName}")
|
||||||
|
if not my_file.exists():
|
||||||
|
print(f"{packageName} is not exists")
|
||||||
|
os.system(f"cd {packagePath} && wget https://www.tdengine.com/assets-download/3.0/{packageName}")
|
||||||
|
else:
|
||||||
|
print(f"{packageName} has been exists")
|
||||||
|
os.system(f"cd {packagePath} && tar xvf {packageName} && cd {packageTPath} && ./install.sh -e no " )
|
||||||
tdDnodes.stop(1)
|
tdDnodes.stop(1)
|
||||||
print(f"start taosd: nohup taosd -c {cPath} & ")
|
print(f"start taosd: nohup taosd -c {cPath} & ")
|
||||||
os.system(f" nohup taosd -c {cPath} & " )
|
os.system(f" nohup taosd -c {cPath} & " )
|
||||||
sleep(1)
|
sleep(5)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -77,33 +85,27 @@ class TDTestCase:
|
||||||
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
print(f"start taosd run")
|
|
||||||
bPath=self.getBuildPath()
|
bPath=self.getBuildPath()
|
||||||
cPath=self.getCfgPath()
|
cPath=self.getCfgPath()
|
||||||
dbname = "test"
|
dbname = "test"
|
||||||
stb = f"{dbname}.meters"
|
stb = f"{dbname}.meters"
|
||||||
self.installTaosd(bPath,cPath)
|
self.installTaosd(bPath,cPath)
|
||||||
os.system("echo 'debugFlag 143' > /etc/taos/taos.cfg ")
|
os.system("echo 'debugFlag 143' > /etc/taos/taos.cfg ")
|
||||||
os.system("echo ' supportVnodes 256' > /etc/taos/taos.cfg ")
|
|
||||||
tableNumbers=100
|
tableNumbers=100
|
||||||
recordNumbers1=100
|
recordNumbers1=100
|
||||||
recordNumbers2=1000
|
recordNumbers2=1000
|
||||||
# tdsqlF=tdCom.newTdSql()
|
# tdsqlF=tdCom.newTdSql()
|
||||||
# print(tdsqlF)
|
# print(tdsqlF)
|
||||||
|
|
||||||
oldServerVersion = '3.0.1.0'
|
|
||||||
# tdsqlF.query(f"SELECT SERVER_VERSION();")
|
# tdsqlF.query(f"SELECT SERVER_VERSION();")
|
||||||
# print(tdsqlF.query(f"SELECT SERVER_VERSION();"))
|
# print(tdsqlF.query(f"SELECT SERVER_VERSION();"))
|
||||||
# oldServerVersion=tdsqlF.queryResult[0][0]
|
# oldServerVersion=tdsqlF.queryResult[0][0]
|
||||||
# tdLog.info(f"Base server version is {oldServerVersion}")
|
# tdLog.info(f"Base server version is {oldServerVersion}")
|
||||||
# tdsqlF.query(f"SELECT CLIENT_VERSION();")
|
# tdsqlF.query(f"SELECT CLIENT_VERSION();")
|
||||||
#
|
|
||||||
# # the oldClientVersion can't be updated in the same python process,so the version is new compiled verison
|
# # the oldClientVersion can't be updated in the same python process,so the version is new compiled verison
|
||||||
# oldClientVersion=tdsqlF.queryResult[0][0]
|
# oldClientVersion=tdsqlF.queryResult[0][0]
|
||||||
|
|
||||||
# tdLog.info(f"Base client version is {oldClientVersion}")
|
# tdLog.info(f"Base client version is {oldClientVersion}")
|
||||||
|
# baseVersion = "3.0.1.8"
|
||||||
tdLog.printNoPrefix(f"==========step1:prepare and check data in old version-{oldServerVersion}")
|
tdLog.printNoPrefix(f"==========step1:prepare and check data in old version-{BASEVERSION}")
|
||||||
tdLog.info(f" LD_LIBRARY_PATH=/usr/lib taosBenchmark -t {tableNumbers} -n {recordNumbers1} -y ")
|
tdLog.info(f" LD_LIBRARY_PATH=/usr/lib taosBenchmark -t {tableNumbers} -n {recordNumbers1} -y ")
|
||||||
os.system(f"LD_LIBRARY_PATH=/usr/lib taosBenchmark -t {tableNumbers} -n {recordNumbers1} -y ")
|
os.system(f"LD_LIBRARY_PATH=/usr/lib taosBenchmark -t {tableNumbers} -n {recordNumbers1} -y ")
|
||||||
sleep(3)
|
sleep(3)
|
||||||
|
@ -143,6 +145,8 @@ class TDTestCase:
|
||||||
os.system(f"taosBenchmark -t {tableNumbers} -n {recordNumbers2} -y ")
|
os.system(f"taosBenchmark -t {tableNumbers} -n {recordNumbers2} -y ")
|
||||||
tdsql.query(f"select count(*) from {stb}")
|
tdsql.query(f"select count(*) from {stb}")
|
||||||
tdsql.checkData(0,0,tableNumbers*recordNumbers2)
|
tdsql.checkData(0,0,tableNumbers*recordNumbers2)
|
||||||
|
tdsql.query(f"select count(*) from db4096.stb0")
|
||||||
|
tdsql.checkData(0,0,50000)
|
||||||
|
|
||||||
tdsql=tdCom.newTdSql()
|
tdsql=tdCom.newTdSql()
|
||||||
tdLog.printNoPrefix(f"==========step4:verify backticks in taos Sql-TD18542")
|
tdLog.printNoPrefix(f"==========step4:verify backticks in taos Sql-TD18542")
|
||||||
|
@ -170,5 +174,6 @@ class TDTestCase:
|
||||||
tdSql.close()
|
tdSql.close()
|
||||||
tdLog.success(f"{__file__} successfully executed")
|
tdLog.success(f"{__file__} successfully executed")
|
||||||
|
|
||||||
|
|
||||||
tdCases.addLinux(__file__, TDTestCase())
|
tdCases.addLinux(__file__, TDTestCase())
|
||||||
tdCases.addWindows(__file__, TDTestCase())
|
tdCases.addWindows(__file__, TDTestCase())
|
||||||
|
|
Loading…
Reference in New Issue