[TD-2687]<test> add test case

This commit is contained in:
Ping Xiao 2021-01-08 10:23:09 +08:00
parent a05788695c
commit 4868573897
1 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class TDTestCase:
else:
tdLog.info("taosd found in %s" % buildPath)
binPath = buildPath+ "/build/bin/"
os.system("yes | %staosdemo -t %d -n %d" % (binPath,self.numberOfTables, self.numberOfRecords))
os.system("yes | %staosdemo -t %d -n %d -x" % (binPath,self.numberOfTables, self.numberOfRecords))
tdSql.execute("use test")
tdSql.query("select count(*) from meters")
@ -61,6 +61,8 @@ class TDTestCase:
tdSql.query("select apercentile(f1, 1) from test.meters interval(10s)")
tdSql.checkRows(11)
tdSql.error("select loc, count(loc) from test.meters")
def stop(self):
tdSql.close()
tdLog.success("%s successfully executed" % __file__)