Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
586329ed
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
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看板
提交
586329ed
编写于
11月 01, 2021
作者:
G
Ganlin Zhao
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop' into enhance/TD-10700
上级
7fa8cb05
d326cfc6
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
25 addition
and
14 deletion
+25
-14
cmake/install.inc
cmake/install.inc
+2
-4
src/connector/grafanaplugin
src/connector/grafanaplugin
+1
-1
tests/pytest/tools/taosdemoTestTblAlt.py
tests/pytest/tools/taosdemoTestTblAlt.py
+22
-9
未找到文件。
cmake/install.inc
浏览文件 @
586329ed
IF
(
TD_LINUX
)
SET
(
TD_MAKE_INSTALL_SH
"${TD_COMMUNITY_DIR}/packaging/tools/make_install.sh"
)
INSTALL
(
CODE
"MESSAGE(
\"
make install script: ${TD_MAKE_INSTALL_SH}
\"
)"
)
INSTALL
(
CODE
"execute_process(COMMAND chmod 777 ${TD_MAKE_INSTALL_SH})"
)
INSTALL
(
CODE
"execute_process(COMMAND ${TD_MAKE_INSTALL_SH} ${TD_COMMUNITY_DIR} ${PROJECT_BINARY_DIR} Linux ${TD_VER_NUMBER})"
)
INSTALL
(
CODE
"execute_process(COMMAND bash ${TD_MAKE_INSTALL_SH} ${TD_COMMUNITY_DIR} ${PROJECT_BINARY_DIR} Linux ${TD_VER_NUMBER})"
)
ELSEIF
(
TD_WINDOWS
)
IF
(
TD_POWER
)
SET
(
CMAKE_INSTALL_PREFIX
C
:/
PowerDB
)
...
...
@@ -41,6 +40,5 @@ ELSEIF (TD_WINDOWS)
ELSEIF
(
TD_DARWIN
)
SET
(
TD_MAKE_INSTALL_SH
"${TD_COMMUNITY_DIR}/packaging/tools/make_install.sh"
)
INSTALL
(
CODE
"MESSAGE(
\"
make install script: ${TD_MAKE_INSTALL_SH}
\"
)"
)
INSTALL
(
CODE
"execute_process(COMMAND chmod 777 ${TD_MAKE_INSTALL_SH})"
)
INSTALL
(
CODE
"execute_process(COMMAND ${TD_MAKE_INSTALL_SH} ${TD_COMMUNITY_DIR} ${PROJECT_BINARY_DIR} Darwin ${TD_VER_NUMBER})"
)
INSTALL
(
CODE
"execute_process(COMMAND bash ${TD_MAKE_INSTALL_SH} ${TD_COMMUNITY_DIR} ${PROJECT_BINARY_DIR} Darwin ${TD_VER_NUMBER})"
)
ENDIF
()
grafanaplugin
@
9ae793ad
比较
edad7465
...
9ae793ad
Subproject commit
edad746514b2a53a8cf6061c93b98b52a5388692
Subproject commit
9ae793ad2d567eb11d10627b65698f612542e988
tests/pytest/tools/taosdemoTestTblAlt.py
浏览文件 @
586329ed
...
...
@@ -54,27 +54,36 @@ class TDTestCase:
binPath
=
buildPath
+
"/build/bin/"
if
(
threadID
==
0
):
os
.
system
(
"%staosdemo -y -t %d -n %d -b INT,INT,INT,INT -m t"
%
print
(
"%staosdemo -y -t %d -n %d -b INT,INT,INT,INT"
%
(
binPath
,
self
.
numberOfTables
,
self
.
numberOfRecords
))
os
.
system
(
"%staosdemo -y -t %d -n %d -b INT,INT,INT,INT"
%
(
binPath
,
self
.
numberOfTables
,
self
.
numberOfRecords
))
if
(
threadID
==
1
):
time
.
sleep
(
2
)
print
(
"use test"
)
while
True
:
max_try
=
100
count
=
0
while
(
count
<
max_try
):
try
:
tdSql
.
execute
(
"use test"
)
break
except
Exception
as
e
:
tdLog
.
info
(
"use database test failed"
)
time
.
sleep
(
1
)
time
.
sleep
(
2
)
count
+=
1
print
(
"try %d times"
%
count
)
continue
# check if all the tables have heen created
while
True
:
count
=
0
while
(
count
<
max_try
):
try
:
tdSql
.
query
(
"show tables"
)
except
Exception
as
e
:
tdLog
.
info
(
"show tables test failed"
)
time
.
sleep
(
1
)
time
.
sleep
(
2
)
count
+=
1
print
(
"try %d times"
%
count
)
continue
rows
=
tdSql
.
queryRows
...
...
@@ -83,13 +92,17 @@ class TDTestCase:
break
time
.
sleep
(
1
)
# check if there are any records in the last created table
while
True
:
count
=
0
while
(
count
<
max_try
):
print
(
"query started"
)
print
(
"try %d times"
%
count
)
try
:
tdSql
.
query
(
"select * from test.
t
7"
)
tdSql
.
query
(
"select * from test.
d
7"
)
except
Exception
as
e
:
tdLog
.
info
(
"select * test failed"
)
time
.
sleep
(
2
)
count
+=
1
print
(
"try %d times"
%
count
)
continue
rows
=
tdSql
.
queryRows
...
...
@@ -100,8 +113,8 @@ class TDTestCase:
print
(
"alter table test.meters add column c10 int"
)
tdSql
.
execute
(
"alter table test.meters add column c10 int"
)
print
(
"insert into test.
t
7 values (now, 1, 2, 3, 4, 0)"
)
tdSql
.
execute
(
"insert into test.
t
7 values (now, 1, 2, 3, 4, 0)"
)
print
(
"insert into test.
d
7 values (now, 1, 2, 3, 4, 0)"
)
tdSql
.
execute
(
"insert into test.
d
7 values (now, 1, 2, 3, 4, 0)"
)
def
run
(
self
):
tdSql
.
prepare
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录