Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
03eaf16d
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看板
提交
03eaf16d
编写于
11月 29, 2022
作者:
dengyihao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add timestamp to msg head
上级
5425d67c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
16 addition
and
14 deletion
+16
-14
tests/system-test/0-others/compatibility.py
tests/system-test/0-others/compatibility.py
+16
-14
未找到文件。
tests/system-test/0-others/compatibility.py
浏览文件 @
03eaf16d
...
...
@@ -72,9 +72,8 @@ class TDTestCase:
def
buildTaosd
(
self
,
bPath
):
# os.system(f"mv {bPath}/build_bak {bPath}/build ")
os
.
system
(
f
" cd
{
bPath
}
&& make install "
)
print
(
f
" build path
{
bPath
}
"
)
os
.
system
(
f
" cd
{
bPath
}
&& cmake -DBUILD_TOOLS=on .. && make -j4 && make install"
)
def
run
(
self
):
bPath
=
self
.
getBuildPath
()
...
...
@@ -86,18 +85,18 @@ class TDTestCase:
tableNumbers
=
100
recordNumbers1
=
100
recordNumbers2
=
1000
tdsqlF
=
tdCom
.
newTdSql
()
print
(
tdsqlF
)
tdsqlF
.
query
(
f
"SELECT SERVER_VERSION();"
)
print
(
tdsqlF
.
query
(
f
"SELECT SERVER_VERSION();"
))
oldServerVersion
=
tdsqlF
.
queryResult
[
0
][
0
]
tdLog
.
info
(
f
"Base server version is
{
oldServerVersion
}
"
)
tdsqlF
.
query
(
f
"SELECT CLIENT_VERSION();"
)
#
tdsqlF=tdCom.newTdSql()
#
print(tdsqlF)
#
tdsqlF.query(f"SELECT SERVER_VERSION();")
#
print(tdsqlF.query(f"SELECT SERVER_VERSION();"))
#
oldServerVersion=tdsqlF.queryResult[0][0]
#
tdLog.info(f"Base server version is {oldServerVersion}")
#
tdsqlF.query(f"SELECT CLIENT_VERSION();")
# the oldClientVersion can't be updated in the same python process,so the version is new compiled verison
oldClientVersion
=
tdsqlF
.
queryResult
[
0
][
0
]
tdLog
.
info
(
f
"Base client version is
{
oldClientVersion
}
"
)
#
#
the oldClientVersion can't be updated in the same python process,so the version is new compiled verison
#
oldClientVersion=tdsqlF.queryResult[0][0]
#
tdLog.info(f"Base client version is {oldClientVersion}")
oldServerVersion
=
"3.0.1.0"
tdLog
.
printNoPrefix
(
f
"==========step1:prepare and check data in old version-
{
oldServerVersion
}
"
)
tdLog
.
info
(
f
" LD_LIBRARY_PATH=/usr/lib taosBenchmark -t
{
tableNumbers
}
-n
{
recordNumbers1
}
-y "
)
os
.
system
(
f
"LD_LIBRARY_PATH=/usr/lib taosBenchmark -t
{
tableNumbers
}
-n
{
recordNumbers1
}
-y "
)
...
...
@@ -138,6 +137,9 @@ class TDTestCase:
os
.
system
(
f
"taosBenchmark -t
{
tableNumbers
}
-n
{
recordNumbers2
}
-y "
)
tdsql
.
query
(
f
"select count(*) from
{
stb
}
"
)
tdsql
.
checkData
(
0
,
0
,
tableNumbers
*
recordNumbers2
)
tdsql
.
query
(
"select count(*) from db4096.stb0"
)
tdsql
.
checkData
(
0
,
0
,
50000
)
tdsql
=
tdCom
.
newTdSql
()
tdLog
.
printNoPrefix
(
f
"==========step4:verify backticks in taos Sql-TD18542"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录