change parameterr
This commit is contained in:
parent
cb09f2be93
commit
3b33b4dadb
|
@ -72,8 +72,9 @@ class TDTestCase:
|
||||||
|
|
||||||
|
|
||||||
def buildTaosd(self,bPath):
|
def buildTaosd(self,bPath):
|
||||||
print(f" build path {bPath} ")
|
# os.system(f"mv {bPath}/build_bak {bPath}/build ")
|
||||||
os.system(f" cd {bPath} && cmake -DBUILD_TOOLS=on .. && make -j4 && make install")
|
os.system(f" cd {bPath} && make install ")
|
||||||
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
bPath=self.getBuildPath()
|
bPath=self.getBuildPath()
|
||||||
|
@ -85,21 +86,21 @@ 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"taosBenchmark -t {tableNumbers} -n {recordNumbers1} -y ")
|
tdLog.info(f" LD_LIBRARY_PATH=/usr/lib taosBenchmark -t {tableNumbers} -n {recordNumbers1} -y ")
|
||||||
os.system(f"/usr/local/bin/taosBenchmark -t {tableNumbers} -n {recordNumbers1} -y ")
|
os.system(f"LD_LIBRARY_PATH=/usr/lib taosBenchmark -t {tableNumbers} -n {recordNumbers1} -y ")
|
||||||
sleep(3)
|
sleep(3)
|
||||||
|
|
||||||
# tdsqlF.query(f"select count(*) from {stb}")
|
# tdsqlF.query(f"select count(*) from {stb}")
|
||||||
|
@ -108,10 +109,10 @@ class TDTestCase:
|
||||||
sleep(2)
|
sleep(2)
|
||||||
|
|
||||||
print(f"start taosd: nohup taosd -c {cPath} & ")
|
print(f"start taosd: nohup taosd -c {cPath} & ")
|
||||||
os.system(f" nohup /usr/bin/taosd -c {cPath} & " )
|
os.system(f" nohup taosd -c {cPath} & " )
|
||||||
sleep(10)
|
sleep(10)
|
||||||
tdLog.info(" LD_LIBRARY_PATH=/usr/lib taosBenchmark -f 0-others/compa4096.json -y ")
|
tdLog.info(" LD_LIBRARY_PATH=/usr/lib taosBenchmark -f 0-others/compa4096.json -y ")
|
||||||
os.system("/usr/local/bin/taosBenchmark -f 0-others/compa4096.json -y")
|
os.system("LD_LIBRARY_PATH=/usr/lib taosBenchmark -f 0-others/compa4096.json -y")
|
||||||
os.system("pkill -9 taosd")
|
os.system("pkill -9 taosd")
|
||||||
|
|
||||||
|
|
||||||
|
@ -132,14 +133,11 @@ class TDTestCase:
|
||||||
tdLog.info(f"New client version is {nowClientVersion}")
|
tdLog.info(f"New client version is {nowClientVersion}")
|
||||||
|
|
||||||
tdLog.printNoPrefix(f"==========step3:prepare and check data in new version-{nowServerVersion}")
|
tdLog.printNoPrefix(f"==========step3:prepare and check data in new version-{nowServerVersion}")
|
||||||
#tdsql.query(f"select count(*) from {stb}")
|
tdsql.query(f"select count(*) from {stb}")
|
||||||
#tdsql.checkData(0,0,tableNumbers*recordNumbers1)
|
tdsql.checkData(0,0,tableNumbers*recordNumbers1)
|
||||||
os.system(f"/usr/local/bin/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