Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
78b0844a
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看板
提交
78b0844a
编写于
11月 30, 2022
作者:
haoranc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test:modify base version from 3.0.1.0 to 3.0.1.8 in compatibility testcase
上级
f76441ba
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
160 addition
and
155 deletion
+160
-155
tests/system-test/0-others/compatibility.py
tests/system-test/0-others/compatibility.py
+160
-155
未找到文件。
tests/system-test/0-others/compatibility.py
浏览文件 @
78b0844a
...
...
@@ -3,8 +3,7 @@ import taos
import
sys
import
os
import
time
from
pathlib
import
Path
from
util.log
import
*
from
util.sql
import
*
from
util.cases
import
*
...
...
@@ -61,9 +60,17 @@ class TDTestCase:
# os.system(f"mv {self.getBuildPath()}/build/lib/libtaos.so {self.getBuildPath()}/build/lib/libtaos.so_bak ")
# os.system(f"mv {self.getBuildPath()}/build/lib/libtaos.so.1 {self.getBuildPath()}/build/lib/libtaos.so.1_bak ")
packagePath
=
"/usr/local/src/"
packageName
=
"TDengine-server-3.0.1.0-Linux-x64.tar.gz"
os
.
system
(
f
"cd
{
packagePath
}
&& tar xvf TDengine-server-3.0.1.0-Linux-x64.tar.gz && cd TDengine-server-3.0.1.0 && ./install.sh -e no "
)
packagePath
=
"/usr/local/src/"
baseVersion
=
"3.0.1.8"
packageName
=
"TDengine-server-{baseVersion}-Linux-x64.tar.gz"
packageTPath
=
packageName
.
split
(
"-Linux-"
)[
0
]
my_file
=
Path
(
f
"
{
packagePath
}
/
{
packageName
}
"
)
if
not
my_file
.
exists
():
print
(
f
"
{
packageName
}
is not exists"
)
os
.
system
(
f
"cd
{
packagePath
}
&& wget https://www.tdengine.com/assets-download/3.0/
{
packageName
}
"
)
else
:
print
(
f
"
{
packageName
}
has been exists"
)
os
.
system
(
f
"cd
{
packagePath
}
&& tar xvf
{
packageName
}
&& cd
{
packageTPath
}
&& ./install.sh -e no "
)
tdDnodes
.
stop
(
1
)
print
(
f
"start taosd: nohup taosd -c
{
cPath
}
& "
)
os
.
system
(
f
" nohup taosd -c
{
cPath
}
& "
)
...
...
@@ -77,7 +84,6 @@ class TDTestCase:
def
run
(
self
):
print
(
f
"start taosd run"
)
bPath
=
self
.
getBuildPath
()
cPath
=
self
.
getCfgPath
()
dbname
=
"test"
...
...
@@ -87,21 +93,18 @@ class TDTestCase:
tableNumbers
=
100
recordNumbers1
=
100
recordNumbers2
=
1000
#tdsqlF=tdCom.newTdSql()
#print(tdsqlF)
oldServerVersion
=
'3.0.1.0'
#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}")
# 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}")
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 "
)
...
...
@@ -142,6 +145,8 @@ 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
(
f
"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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录