Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
ffaebca9
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22017
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看板
未验证
提交
ffaebca9
编写于
2月 09, 2022
作者:
H
Hui Li
提交者:
GitHub
2月 09, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #10156 from taosdata/testdev/chr/TD-13292
[TD-13292]<test>:move testcase to system-test directory
上级
9b8110bf
710fc331
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
44 addition
and
43 deletion
+44
-43
tests/parallel_test/cases.task
tests/parallel_test/cases.task
+1
-3
tests/system-test/5-taos-tools/taosbenchmark/taosdemoTestQueryWithJson.py
...t/5-taos-tools/taosbenchmark/taosdemoTestQueryWithJson.py
+43
-40
未找到文件。
tests/parallel_test/cases.task
浏览文件 @
ffaebca9
...
...
@@ -142,7 +142,6 @@
53,,script,./test.sh -f unique/mnode/mgmt23.sim
53,,script,./test.sh -f unique/mnode/mgmt22.sim
53,,script,./test.sh -f unique/db/replica_add12.sim
# 53,,pytest,python3 test.py -f tools/taosdemoAllTest/taosdemoTestInsertWithJsonSml.py
52,,script,./test.sh -f unique/account/pass_alter.sim
52,,script,./test.sh -f general/parser/topbot.sim
52,,script,./test.sh -f general/parser/join_manyblocks.sim
...
...
@@ -164,6 +163,7 @@
47,,script,./test.sh -f unique/dnode/monitor.sim
47,,script,./test.sh -f unique/big/maxvnodes.sim
47,,pytest,python3 test.py -f tools/taosdemoAllTest/NanoTestCase/taosdemoTestSupportNanosubscribe.py
46,,system-test,python3 ./test.py -f 5-taos-tools/taosbenchmark/taosdemoTestQueryWithJson.py
45,,script,./test.sh -f unique/mnode/mgmt24.sim
45,,pytest,python3 test.py -f tools/taosdemoAllTest/TD-5213/insertSigcolumnsNum4096.py
44,,script,./test.sh -f unique/vnode/replica3_vgroup.sim
...
...
@@ -181,7 +181,6 @@
41,,script,./test.sh -f unique/arbitrator/sync_replica3_dropDb.sim
41,,script,./test.sh -f unique/arbitrator/sync_replica2_alterTable_drop.sim
41,,script,./test.sh -f general/alter/count.sim
# 41,,pytest,python3 test.py -f tools/taosdemoAllTest/taosdemoTestQueryWithJson.py
41,,pytest,python3 test.py -f import_merge/import_update_0.py
40,,script,./test.sh -f unique/arbitrator/sync_replica3_dropTable.sim
40,,script,./test.sh -f unique/arbitrator/sync_replica3_alterTable_add.sim
...
...
@@ -191,7 +190,6 @@
39,,script,./test.sh -f general/wal/kill.sim
39,,script,./test.sh -f general/db/alter_vgroups.sim
39,,pytest,python3 test.py -f update/allow_update.py
# 39,,pytest,python3 test.py -f tools/taosdemoAllTest/taosdemoTestInsertWithJsonStmt.py
39,,pytest,python3 test.py -f query/last_cache.py
38,,script,./test.sh -f unique/dnode/offline3.sim
38,,script,./test.sh -f unique/arbitrator/sync_replica2_dropDb.sim
...
...
tests/system-test/5-taos-tools/taosbenchmark/taosdemoTestQueryWithJson.py
浏览文件 @
ffaebca9
...
...
@@ -108,10 +108,10 @@ class TDTestCase:
# taosc query: query specified table and query super table
os
.
system
(
"%staosBenchmark -f
tools/taosdemoAllTest
/queryInsertdata.json"
%
"%staosBenchmark -f
5-taos-tools/taosbenchmark
/queryInsertdata.json"
%
binPath
)
os
.
system
(
"%staosBenchmark -f
tools/taosdemoAllTest
/queryTaosc.json"
%
"%staosBenchmark -f
5-taos-tools/taosbenchmark
/queryTaosc.json"
%
binPath
)
os
.
system
(
"cat query_res0.txt* > all_query_res0_taosc.txt"
)
os
.
system
(
"cat query_res1.txt* > all_query_res1_taosc.txt"
)
...
...
@@ -138,10 +138,10 @@ class TDTestCase:
# use restful api to query
os
.
system
(
"%staosBenchmark -f
tools/taosdemoAllTest
/queryInsertrestdata.json"
%
"%staosBenchmark -f
5-taos-tools/taosbenchmark
/queryInsertrestdata.json"
%
binPath
)
os
.
system
(
"%staosBenchmark -f
tools/taosdemoAllTest
/queryRestful.json"
%
"%staosBenchmark -f
5-taos-tools/taosbenchmark
/queryRestful.json"
%
binPath
)
os
.
system
(
"cat query_res0.txt* > all_query_res0_rest.txt"
)
os
.
system
(
"cat query_res1.txt* > all_query_res1_rest.txt"
)
...
...
@@ -175,61 +175,64 @@ class TDTestCase:
# query times less than or equal to 100
assert
os
.
system
(
"%staosBenchmark -f
tools/taosdemoAllTest
/queryInsertdata.json"
%
"%staosBenchmark -f
5-taos-tools/taosbenchmark
/queryInsertdata.json"
%
binPath
)
==
0
assert
os
.
system
(
"%staosBenchmark -f
tools/taosdemoAllTest
/querySpeciMutisql100.json"
%
"%staosBenchmark -f
5-taos-tools/taosbenchmark
/querySpeciMutisql100.json"
%
binPath
)
!=
0
assert
os
.
system
(
"%staosBenchmark -f
tools/taosdemoAllTest
/querySuperMutisql100.json"
%
"%staosBenchmark -f
5-taos-tools/taosbenchmark
/querySuperMutisql100.json"
%
binPath
)
==
0
# query result print QPS
os
.
system
(
"%staosBenchmark -f
tools/taosdemoAllTest
/queryInsertdata.json"
%
"%staosBenchmark -f
5-taos-tools/taosbenchmark
/queryInsertdata.json"
%
binPath
)
exceptcode
=
os
.
system
(
"%staosBenchmark -f
tools/taosdemoAllTest
/queryQps.json"
%
"%staosBenchmark -f
5-taos-tools/taosbenchmark
/queryQps.json"
%
binPath
)
assert
exceptcode
==
0
#2021.02.09 need modify taosBenchmakr code
# use illegal or out of range parameters query json file
os
.
system
(
"%staosBenchmark -f
tools/taosdemoAllTest
/queryInsertdata.json"
%
"%staosBenchmark -f
5-taos-tools/taosbenchmark
/queryInsertdata.json"
%
binPath
)
exceptcode
=
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/queryTimes0.json"
%
binPath
)
assert
exceptcode
!=
0
exceptcode0
=
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/queryTimesless0.json"
%
binPath
)
assert
exceptcode0
!=
0
exceptcode1
=
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/queryConcurrentless0.json"
%
binPath
)
assert
exceptcode1
!=
0
exceptcode2
=
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/queryConcurrent0.json"
%
binPath
)
assert
exceptcode2
!=
0
exceptcode3
=
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/querrThreadsless0.json"
%
binPath
)
assert
exceptcode3
!=
0
exceptcode4
=
os
.
system
(
"%staosBenchmark -f tools/taosdemoAllTest/querrThreads0.json"
%
binPath
)
assert
exceptcode4
!=
0
#2021.02.09 need modify taosBenchmakr code
# exceptcode = os.system(
# "%staosBenchmark -f 5-taos-tools/taosbenchmark/queryTimes0.json" %
# binPath)
# assert exceptcode != 0
#2021.02.09 need modify taosBenchmakr code
# exceptcode0 = os.system(
# "%staosBenchmark -f 5-taos-tools/taosbenchmark/queryTimesless0.json" %
# binPath)
# assert exceptcode0 != 0
# exceptcode1 = os.system(
# "%staosBenchmark -f 5-taos-tools/taosbenchmark/queryConcurrentless0.json" %
# binPath)
# assert exceptcode1 != 0
# exceptcode2 = os.system(
# "%staosBenchmark -f 5-taos-tools/taosbenchmark/queryConcurrent0.json" %
# binPath)
# assert exceptcode2 != 0
# exceptcode3 = os.system(
# "%staosBenchmark -f 5-taos-tools/taosbenchmark/querrThreadsless0.json" %
# binPath)
# assert exceptcode3 != 0
# exceptcode4 = os.system(
# "%staosBenchmark -f 5-taos-tools/taosbenchmark/querrThreads0.json" %
# binPath)
# assert exceptcode4 != 0
# delete useless files
os
.
system
(
"rm -rf ./insert_res.txt"
)
os
.
system
(
"rm -rf
tools/taosdemoAllTest
/*.py.sql"
)
os
.
system
(
"rm -rf
5-taos-tools/taosbenchmark
/*.py.sql"
)
os
.
system
(
"rm -rf ./querySystemInfo*"
)
os
.
system
(
"rm -rf ./query_res*"
)
os
.
system
(
"rm -rf ./all_query*"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录