Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
5c7997be
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看板
提交
5c7997be
编写于
9月 20, 2022
作者:
haoranc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test:verify backticks with atuo creating tables
上级
83e232e6
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
20 addition
and
13 deletion
+20
-13
tests/system-test/0-others/compatibility.py
tests/system-test/0-others/compatibility.py
+19
-13
tests/system-test/fulltest.sh
tests/system-test/fulltest.sh
+1
-0
未找到文件。
tests/system-test/0-others/compatibility.py
浏览文件 @
5c7997be
...
@@ -76,7 +76,6 @@ class TDTestCase:
...
@@ -76,7 +76,6 @@ class TDTestCase:
def
run
(
self
):
def
run
(
self
):
print
(
f
"buildpath:
{
self
.
getBuildPath
()
}
"
)
bPath
=
self
.
getBuildPath
()
bPath
=
self
.
getBuildPath
()
cPath
=
self
.
getCfgPath
()
cPath
=
self
.
getCfgPath
()
dbname
=
"test"
dbname
=
"test"
...
@@ -85,7 +84,6 @@ class TDTestCase:
...
@@ -85,7 +84,6 @@ class TDTestCase:
tableNumbers
=
100
tableNumbers
=
100
recordNumbers1
=
100
recordNumbers1
=
100
recordNumbers2
=
1000
recordNumbers2
=
1000
# print(tdSql)
tdsqlF
=
tdCom
.
newTdSql
()
tdsqlF
=
tdCom
.
newTdSql
()
print
(
tdsqlF
)
print
(
tdsqlF
)
tdsqlF
.
query
(
f
"SELECT SERVER_VERSION();"
)
tdsqlF
.
query
(
f
"SELECT SERVER_VERSION();"
)
...
@@ -111,24 +109,32 @@ class TDTestCase:
...
@@ -111,24 +109,32 @@ class TDTestCase:
self
.
buildTaosd
(
bPath
)
self
.
buildTaosd
(
bPath
)
tdDnodes
.
start
(
1
)
tdDnodes
.
start
(
1
)
sleep
(
1
)
sleep
(
1
)
tdsql
_new
=
tdCom
.
newTdSql
()
tdsql
=
tdCom
.
newTdSql
()
print
(
tdsql
_new
)
print
(
tdsql
)
tdsql
_new
.
query
(
f
"SELECT SERVER_VERSION();"
)
tdsql
.
query
(
f
"SELECT SERVER_VERSION();"
)
nowServerVersion
=
tdsql
_new
.
queryResult
[
0
][
0
]
nowServerVersion
=
tdsql
.
queryResult
[
0
][
0
]
tdLog
.
info
(
f
"New server version is
{
nowServerVersion
}
"
)
tdLog
.
info
(
f
"New server version is
{
nowServerVersion
}
"
)
tdsql
_new
.
query
(
f
"SELECT CLIENT_VERSION();"
)
tdsql
.
query
(
f
"SELECT CLIENT_VERSION();"
)
nowClientVersion
=
tdsql
_new
.
queryResult
[
0
][
0
]
nowClientVersion
=
tdsql
.
queryResult
[
0
][
0
]
tdLog
.
info
(
f
"New client version is
{
nowClientVersion
}
"
)
tdLog
.
info
(
f
"New client version is
{
nowClientVersion
}
"
)
tdLog
.
printNoPrefix
(
f
"==========step3:prepare and check data in new version-
{
nowServerVersion
}
"
)
tdLog
.
printNoPrefix
(
f
"==========step3:prepare and check data in new version-
{
nowServerVersion
}
"
)
tdsql
_new
.
query
(
f
"select count(*) from
{
stb
}
"
)
tdsql
.
query
(
f
"select count(*) from
{
stb
}
"
)
tdsql
_new
.
checkData
(
0
,
0
,
tableNumbers
*
recordNumbers1
)
tdsql
.
checkData
(
0
,
0
,
tableNumbers
*
recordNumbers1
)
os
.
system
(
f
"taosBenchmark -t
{
tableNumbers
}
-n
{
recordNumbers2
}
-y "
)
os
.
system
(
f
"taosBenchmark -t
{
tableNumbers
}
-n
{
recordNumbers2
}
-y "
)
tdsql_new
.
query
(
f
"select count(*) from
{
stb
}
"
)
tdsql
.
query
(
f
"select count(*) from
{
stb
}
"
)
tdsql_new
.
checkData
(
0
,
0
,
tableNumbers
*
recordNumbers2
)
tdsql
.
checkData
(
0
,
0
,
tableNumbers
*
recordNumbers2
)
tdsql
=
tdCom
.
newTdSql
()
tdLog
.
printNoPrefix
(
f
"==========step4:verify backticks in taos Sql-TD18542"
)
tdsql
.
execute
(
"create database db"
)
tdsql
.
execute
(
"use db"
)
tdsql
.
execute
(
"create stable db.stb1 (ts timestamp, c1 int) tags (t1 int);"
)
tdsql
.
execute
(
"insert into db.ct1 using db.stb1 TAGS(9) values(now(),11);"
)
tdsql
.
error
(
" insert into `db.ct2` using db.stb1 TAGS(9) values(now(),11);"
)
tdsql
.
error
(
" insert into db.`db.ct2` using db.stb1 TAGS(9) values(now(),11);"
)
def
stop
(
self
):
def
stop
(
self
):
tdSql
.
close
()
tdSql
.
close
()
...
...
tests/system-test/fulltest.sh
浏览文件 @
5c7997be
...
@@ -17,6 +17,7 @@ python3 ./test.py -f 0-others/udf_cfg2.py
...
@@ -17,6 +17,7 @@ python3 ./test.py -f 0-others/udf_cfg2.py
python3 ./test.py
-f
0-others/sysinfo.py
python3 ./test.py
-f
0-others/sysinfo.py
python3 ./test.py
-f
0-others/user_control.py
python3 ./test.py
-f
0-others/user_control.py
python3 ./test.py
-f
0-others/fsync.py
python3 ./test.py
-f
0-others/fsync.py
python3 ./test.py
-f
0-others/compatibility.py
python3 ./test.py
-f
1-insert/influxdb_line_taosc_insert.py
python3 ./test.py
-f
1-insert/influxdb_line_taosc_insert.py
python3 ./test.py
-f
1-insert/opentsdb_telnet_line_taosc_insert.py
python3 ./test.py
-f
1-insert/opentsdb_telnet_line_taosc_insert.py
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录