add timestamp to msg head
This commit is contained in:
parent
5425d67c9a
commit
03eaf16d08
|
@ -72,9 +72,8 @@ class TDTestCase:
|
||||||
|
|
||||||
|
|
||||||
def buildTaosd(self,bPath):
|
def buildTaosd(self,bPath):
|
||||||
# os.system(f"mv {bPath}/build_bak {bPath}/build ")
|
print(f" build path {bPath} ")
|
||||||
os.system(f" cd {bPath} && make install ")
|
os.system(f" cd {bPath} && cmake -DBUILD_TOOLS=on .. && make -j4 && make install")
|
||||||
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
bPath=self.getBuildPath()
|
bPath=self.getBuildPath()
|
||||||
|
@ -86,18 +85,18 @@ class TDTestCase:
|
||||||
tableNumbers=100
|
tableNumbers=100
|
||||||
recordNumbers1=100
|
recordNumbers1=100
|
||||||
recordNumbers2=1000
|
recordNumbers2=1000
|
||||||
tdsqlF=tdCom.newTdSql()
|
# tdsqlF=tdCom.newTdSql()
|
||||||
print(tdsqlF)
|
# print(tdsqlF)
|
||||||
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}")
|
||||||
|
oldServerVersion="3.0.1.0"
|
||||||
tdLog.printNoPrefix(f"==========step1:prepare and check data in old version-{oldServerVersion}")
|
tdLog.printNoPrefix(f"==========step1:prepare and check data in old version-{oldServerVersion}")
|
||||||
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 ")
|
||||||
|
@ -138,6 +137,9 @@ 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("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")
|
||||||
|
|
Loading…
Reference in New Issue