Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
a0aa07b4
T
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1184
Star
22015
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a0aa07b4
编写于
11月 24, 2022
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test: adjust asan case
上级
a67374fb
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
17 addition
and
14 deletion
+17
-14
tests/parallel_test/cases.task
tests/parallel_test/cases.task
+3
-3
tests/system-test/2-query/smaTest.py
tests/system-test/2-query/smaTest.py
+14
-11
未找到文件。
tests/parallel_test/cases.task
浏览文件 @
a0aa07b4
...
@@ -417,7 +417,7 @@
...
@@ -417,7 +417,7 @@
,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/user_control.py
,,y,system-test,./pytest.sh python3 ./test.py -f 0-others/user_control.py
,,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
#
,,,system-test,python3 ./test.py -f 1-insert/alter_database.py
,,,system-test,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
,,,system-test,python3 ./test.py -f 1-insert/opentsdb_json_taosc_insert.py
,,,system-test,python3 ./test.py -f 1-insert/opentsdb_json_taosc_insert.py
...
@@ -561,8 +561,8 @@
...
@@ -561,8 +561,8 @@
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/sample.py -R
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/sample.py -R
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/sin.py
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/sin.py
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/sin.py -R
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/sin.py -R
,,
,system-test,
python3 ./test.py -f 2-query/smaTest.py
,,
y,system-test,./pytest.sh
python3 ./test.py -f 2-query/smaTest.py
,,
,system-test,
python3 ./test.py -f 2-query/smaTest.py -R
,,
y,system-test,./pytest.sh
python3 ./test.py -f 2-query/smaTest.py -R
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/sml.py
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/sml.py
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/sml.py -R
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/sml.py -R
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/spread.py
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/spread.py
...
...
tests/system-test/2-query/smaTest.py
浏览文件 @
a0aa07b4
...
@@ -44,8 +44,8 @@ class TDTestCase:
...
@@ -44,8 +44,8 @@ class TDTestCase:
def
run
(
self
):
def
run
(
self
):
# insert data
# insert data
dbname
=
"db"
dbname
=
"db"
self
.
insert_data1
(
f
"
{
dbname
}
.t1"
,
self
.
ts
,
10
00
*
10000
)
self
.
insert_data1
(
f
"
{
dbname
}
.t1"
,
self
.
ts
,
10
*
10000
)
self
.
insert_data1
(
f
"
{
dbname
}
.t4"
,
self
.
ts
,
10
00
*
10000
)
self
.
insert_data1
(
f
"
{
dbname
}
.t4"
,
self
.
ts
,
10
*
10000
)
# test base case
# test base case
# self.test_case1()
# self.test_case1()
tdLog
.
debug
(
" LIMIT test_case1 ............ [OK]"
)
tdLog
.
debug
(
" LIMIT test_case1 ............ [OK]"
)
...
@@ -53,7 +53,6 @@ class TDTestCase:
...
@@ -53,7 +53,6 @@ class TDTestCase:
# self.test_case2()
# self.test_case2()
tdLog
.
debug
(
" LIMIT test_case2 ............ [OK]"
)
tdLog
.
debug
(
" LIMIT test_case2 ............ [OK]"
)
# stop
# stop
def
stop
(
self
):
def
stop
(
self
):
tdSql
.
close
()
tdSql
.
close
()
...
@@ -77,15 +76,17 @@ class TDTestCase:
...
@@ -77,15 +76,17 @@ class TDTestCase:
# insert data1
# insert data1
def
insert_data
(
self
,
tbname
,
ts_start
,
count
):
def
insert_data
(
self
,
tbname
,
ts_start
,
count
):
pre_insert
=
"insert into %s values"
%
tbname
pre_insert
=
"insert into %s values"
%
tbname
sql
=
pre_insert
sql
=
pre_insert
tdLog
.
debug
(
"insert table %s rows=%d ..."
%
(
tbname
,
count
))
tdLog
.
debug
(
"insert table %s rows=%d ..."
%
(
tbname
,
count
))
for
i
in
range
(
count
):
for
i
in
range
(
count
):
sql
+=
" (%d,%d)"
%
(
ts_start
+
i
*
1000
,
i
)
sql
+=
" (%d,%d)"
%
(
ts_start
+
i
*
1000
,
i
)
if
i
>
0
and
i
%
30000
==
0
:
if
i
>
0
and
i
%
20000
==
0
:
tdLog
.
info
(
"%d rows inserted"
%
i
)
tdSql
.
execute
(
sql
)
tdSql
.
execute
(
sql
)
sql
=
pre_insert
sql
=
pre_insert
# end sql
# end sql
tdLog
.
info
(
"insert_data end"
)
if
sql
!=
pre_insert
:
if
sql
!=
pre_insert
:
tdSql
.
execute
(
sql
)
tdSql
.
execute
(
sql
)
...
@@ -93,15 +94,17 @@ class TDTestCase:
...
@@ -93,15 +94,17 @@ class TDTestCase:
return
return
def
insert_data1
(
self
,
tbname
,
ts_start
,
count
):
def
insert_data1
(
self
,
tbname
,
ts_start
,
count
):
pre_insert
=
"insert into %s values"
%
tbname
pre_insert
=
"insert into %s values"
%
tbname
sql
=
pre_insert
sql
=
pre_insert
tdLog
.
debug
(
"insert table %s rows=%d ..."
%
(
tbname
,
count
))
tdLog
.
debug
(
"insert table %s rows=%d ..."
%
(
tbname
,
count
))
for
i
in
range
(
count
):
for
i
in
range
(
count
):
sql
+=
" (%d,%d,%d)"
%
(
ts_start
+
i
*
1000
,
i
,
i
+
1
)
sql
+=
" (%d,%d,%d)"
%
(
ts_start
+
i
*
1000
,
i
,
i
+
1
)
if
i
>
0
and
i
%
30000
==
0
:
if
i
>
0
and
i
%
20000
==
0
:
tdLog
.
info
(
"%d rows inserted"
%
i
)
tdSql
.
execute
(
sql
)
tdSql
.
execute
(
sql
)
sql
=
pre_insert
sql
=
pre_insert
# end sql
# end sql
tdLog
.
info
(
"insert_data1 end"
)
if
sql
!=
pre_insert
:
if
sql
!=
pre_insert
:
tdSql
.
execute
(
sql
)
tdSql
.
execute
(
sql
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录