未验证 提交 40d63d21 编写于 作者: H Hui Li 提交者: GitHub

Merge pull request #9635 from taosdata/test/case_runCI_query

[TD-12191]<test>(query): update case and RUN CI
......@@ -31,7 +31,7 @@ class TDTestCase:
def caseDescription(self):
'''
case1 <authors>: wenzhouwww[TD-11943] :
case1 <wenzhouwww>: [TD-11943] :
this test case is an test case for unexpected coredump about taosd ;
root cause : the pExpr2 of sql select tbname, max(col)+5 from child_table has two functions, col_proj and scalar_expr.
for function col_proj (tbname column), it is a tag during master scan stage, the input data is not set.
......
......@@ -30,7 +30,7 @@ class TDTestCase:
def caseDescription(self):
'''
case1 <authors>: wenzhouwww[TD-11978] :
case1 <wenzhouwww>: [TD-11978] :
this test case is an test case for unexpected coredump about taoshell ;
root cause : The function does not determine whether the input is empty
'''
......
......@@ -92,15 +92,12 @@ class TDTestCase:
taosd_pid = int(subprocess.getstatusoutput('ps aux|grep "taosd" |grep -v "grep"|awk \'{print $2}\'')[1])
sleep(10)
cmd = "top -H -p %d -n 1"%taosd_pid
sys_output = subprocess.check_output(cmd, shell=True).decode("utf-8")
print(sys_output)
cmd_insert = "%staosBenchmark -y -n 10 -t 10 -S 10000 > /dev/null 2>&1 & " % (build_path)
cmd_insert = "%staosBenchmark -y -n 10 -t 10 -S 10000 " % (build_path)
os.system(cmd_insert)
sleep(5)
tdSql.query("select count(*) from meters")
tdSql.checkData(0,0,10)
tdSql.query("select count(*) from test.meters")
tdSql.checkData(0,0,100)
def stop(self):
tdSql.close()
......
......@@ -369,7 +369,7 @@ class TDTestCase:
print(conn1)
for i in range(20):
for i in range(2):
try:
taos_cmd1 = "taos -f 2-query/TD-12204.py.sql"
_ = subprocess.check_output(taos_cmd1, shell=True).decode("utf-8")
......@@ -377,7 +377,7 @@ class TDTestCase:
print(i)
print(conn1)
for i in range(10):
for i in range(5):
cur1.execute('use db ;')
sql = 'select * from stable_1 where t_smallint between 0 and 32767 and t_float between 0 and 3.4E38 and t_nchar is not null and q_smallint between 0 and 32767 and q_nchar is not null and t_binary is not null and q_tinyint is not null and ts < now +1s order by ts ;;;'
......
......@@ -31,7 +31,7 @@ class TDTestCase:
def caseDescription(self):
'''
case1 <authors>: wenzhouwww[TD-12388] :
case1 <wenzhouwww>: [TD-12388] :
this test case is an test case for unit time params about elapsed function.
'''
......
......@@ -140,8 +140,8 @@ class TDTestCase:
tablenames = ["sub_table1_1","sub_table1_2","sub_table1_3","sub_table2_1","sub_table2_2","sub_table2_3","regular_table_1","regular_table_2","regular_table_3"]
abnormal_list = ["()","(NULL)","(*)","(abc)","( , )","(NULL,*)","( ,NULL)","(%)","(+)","(*,)","(*, /)","(ts,10)","(ts,*)" "(ts,tbname*10)","(ts,tagname)","(ts,now-2d+3m)","(ts,2d+3m-2s)",
"(ts,2d+3m-2s,)","(ts+1d,10s)","(ts+10d,NULL)" ,"(ts,now -1m%1d)","(ts+10d)","(ts+10d,_c0)","(ts+10d,)","(ts,%)","(ts, , )","(ts,abc)","(ts,/)","(ts,*)","(ts,now)","(ts,now+1d)","(ts,_c0)","(ts,1s,100)",
abnormal_list = ["()","(NULL)","(*)","(abc)","( , )","(NULL,*)","( ,NULL)","(%)","(+)","(*,)","(*, /)","(ts,10)","(ts,*)" "(ts,tbname*10)","(ts,tagname)","(ts,now-2d+3m)",
"(ts,2d+3m-2s,NULL)","(ts+1d,10s)","(ts+10d,NULL)" ,"(ts,now -1m%1d)","(ts+10d)","(ts+10d,_c0)","(ts+10d,)","(ts,%)","(ts, , m)","(ts,abc)","(ts,/)","(ts,*)","(ts,now)","(ts,now+1d)","(ts,_c0)","(ts,1s,100)",
"(ts,1s,abc)","(ts,1s,_c0)","(ts,1s,*)","(ts,1s,NULL)","(ts,,_c0)","(ts,tbname)","(ts,tbname,ts)","(ts,0,tbname)","('2021-11-18 00:00:10')","('2021-11-18 00:00:10', 1s)",
"('2021-11-18T00:00:10+0800', '1s')","('2021-11-18T00:00:10Z', '1s')","('2021-11-18T00:00:10+0800', 10000000d,)","('ts', ,2021-11-18T00:00:10+0800, )"]
......@@ -1597,7 +1597,7 @@ class TDTestCase:
def run(self):
tdSql.prepare()
self.prepare_data()
# self.abnormal_common_test()
self.abnormal_common_test()
self.abnormal_use_test()
self.query_filter()
self.query_interval()
......
{
"filetype": "insert",
"cfgdir": "/etc/taos",
"host": "127.0.0.1",
"port": 6030,
"user": "root",
"password": "taosdata",
"thread_count": 16,
"thread_count_create_tbl": 4,
"result_file": "./insert_res.txt",
"confirm_parameter_prompt": "no",
"insert_interval": 0,
"chinese":"no",
"databases": [{
"dbinfo": {
"name": "test_TD11483",
"drop": "yes",
"replica": 1,
"days": 10,
"cache": 16,
"blocks": 8,
"precision": "ms",
"keep": 36500,
"minRows": 100,
"maxRows": 4096,
"comp":2,
"walLevel":1,
"cachelast":0,
"quorum":1,
"fsync":3000,
"update": 0
},
"super_tables": [{
"name": "stb",
"child_table_exists":"no",
"childtable_count": 10,
"childtable_prefix": "stb_",
"escape_character": "yes",
"auto_create_table": "no",
"batch_create_tbl_num": 5,
"data_source": "rand",
"insert_mode": "taosc",
"line_protocol": "line",
"insert_rows": 100,
"childtable_limit": 10,
"childtable_offset":100,
"interlace_rows": 0,
"insert_interval":0,
"disorder_ratio": 0,
"disorder_range": 1000,
"timestamp_step": 10000,
"start_timestamp": "2010-10-01 00:00:00.000",
"sample_format": "csv",
"sample_file": "./sample.csv",
"use_sameple_ts": "no",
"tags_file": "",
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":2}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":1}]
}]
}]
}
......@@ -2,8 +2,40 @@ python3 ./test.py -f 2-query/TD-11256.py
# python3 ./test.py -f 2-query/TD-11389.py
python3 ./test.py -f 2-query/TD-11945_crash.py
python3 ./test.py -f 2-query/TD-12340-12342.py
python3 ./test.py -f 2-query/TD-11561.py
python3 ./test.py -f 2-query/TD-12204.py
python3 ./test.py -f 2-query/TD-11483.py
python3 ./test.py -f 2-query/TD-11943.py
python3 ./test.py -f 2-query/TD-11969.py
python3 ./test.py -f 2-query/TD-11978.py
python3 ./test.py -f 2-query/TD-12014.py
python3 ./test.py -f 2-query/TD-12145.py
python3 ./test.py -f 2-query/TD-12164.py
python3 ./test.py -f 2-query/TD-12165.py
python3 ./test.py -f 2-query/TD-12191.py
python3 ./test.py -f 2-query/TD-12228.py
python3 ./test.py -f 2-query/TD-12229.py
python3 ./test.py -f 2-query/TD-12276.py
python3 ./test.py -f 2-query/TD-12344.py
#python3 ./test.py -f 2-query/TD-12388.py
#python3 ./test.py -f 2-query/TD-12593.py
#python3 ./test.py -f 2-query/TD-12594.py
python3 ./test.py -f 2-query/TD-12614.py
python3 ./test.py -f 2-query/function_elapsed.py
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册