Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
54bc2fc2
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
Star
22018
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看板
提交
54bc2fc2
编写于
11月 18, 2022
作者:
W
wenzhouwww@live.cn
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update case for restful mode run
上级
b60bf7c8
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
28 addition
and
92 deletion
+28
-92
tests/system-test/2-query/abs.py
tests/system-test/2-query/abs.py
+4
-10
tests/system-test/2-query/arccos.py
tests/system-test/2-query/arccos.py
+4
-13
tests/system-test/2-query/arcsin.py
tests/system-test/2-query/arcsin.py
+5
-13
tests/system-test/2-query/arctan.py
tests/system-test/2-query/arctan.py
+3
-13
tests/system-test/2-query/ceil.py
tests/system-test/2-query/ceil.py
+3
-8
tests/system-test/2-query/cos.py
tests/system-test/2-query/cos.py
+2
-18
tests/system-test/2-query/floor.py
tests/system-test/2-query/floor.py
+3
-8
tests/system-test/2-query/log.py
tests/system-test/2-query/log.py
+0
-1
tests/system-test/2-query/round.py
tests/system-test/2-query/round.py
+4
-8
未找到文件。
tests/system-test/2-query/abs.py
浏览文件 @
54bc2fc2
...
@@ -204,18 +204,12 @@ class TDTestCase:
...
@@ -204,18 +204,12 @@ class TDTestCase:
row_check
.
append
(
elem
)
row_check
.
append
(
elem
)
auto_result
.
append
(
row_check
)
auto_result
.
append
(
row_check
)
check_status
=
True
tdSql
.
query
(
abs_query
)
for
row_index
,
row
in
enumerate
(
abs_result
):
for
row_index
,
row
in
enumerate
(
abs_result
):
for
col_index
,
elem
in
enumerate
(
row
):
for
col_index
,
elem
in
enumerate
(
row
):
if
auto_result
[
row_index
][
col_index
]
!=
elem
:
tdSql
.
checkData
(
row_index
,
col_index
,
auto_result
[
row_index
][
col_index
])
check_status
=
False
if
not
check_status
:
tdLog
.
notice
(
"abs function value has not as expected , sql is
\"
%s
\"
"
%
abs_query
)
sys
.
exit
(
1
)
else
:
tdLog
.
info
(
"abs value check pass , it work as expected ,sql is
\"
%s
\"
"
%
abs_query
)
def
test_errors
(
self
):
def
test_errors
(
self
):
dbname
=
"testdb"
dbname
=
"testdb"
...
...
tests/system-test/2-query/arccos.py
浏览文件 @
54bc2fc2
...
@@ -86,21 +86,12 @@ class TDTestCase:
...
@@ -86,21 +86,12 @@ class TDTestCase:
row_check
.
append
(
elem
)
row_check
.
append
(
elem
)
auto_result
.
append
(
row_check
)
auto_result
.
append
(
row_check
)
check_status
=
True
tdSql
.
query
(
pow_query
)
for
row_index
,
row
in
enumerate
(
pow_result
):
for
row_index
,
row
in
enumerate
(
pow_result
):
for
col_index
,
elem
in
enumerate
(
row
):
for
col_index
,
elem
in
enumerate
(
row
):
if
auto_result
[
row_index
][
col_index
]
==
None
and
not
(
auto_result
[
row_index
][
col_index
]
==
None
and
elem
==
None
):
check_status
=
False
tdSql
.
checkData
(
row_index
,
col_index
,
auto_result
[
row_index
][
col_index
])
elif
auto_result
[
row_index
][
col_index
]
!=
None
and
(
auto_result
[
row_index
][
col_index
]
-
elem
>
0.00000001
):
check_status
=
False
else
:
pass
if
not
check_status
:
tdLog
.
notice
(
"acos function value has not as expected , sql is
\"
%s
\"
"
%
pow_query
)
sys
.
exit
(
1
)
else
:
tdLog
.
info
(
"acos value check pass , it work as expected ,sql is
\"
%s
\"
"
%
pow_query
)
def
test_errors
(
self
,
dbname
=
"db"
):
def
test_errors
(
self
,
dbname
=
"db"
):
error_sql_lists
=
[
error_sql_lists
=
[
...
...
tests/system-test/2-query/arcsin.py
浏览文件 @
54bc2fc2
...
@@ -86,21 +86,13 @@ class TDTestCase:
...
@@ -86,21 +86,13 @@ class TDTestCase:
row_check
.
append
(
elem
)
row_check
.
append
(
elem
)
auto_result
.
append
(
row_check
)
auto_result
.
append
(
row_check
)
check_status
=
True
tdSql
.
query
(
pow_query
)
for
row_index
,
row
in
enumerate
(
pow_result
):
for
row_index
,
row
in
enumerate
(
pow_result
):
for
col_index
,
elem
in
enumerate
(
row
):
for
col_index
,
elem
in
enumerate
(
row
):
if
auto_result
[
row_index
][
col_index
]
==
None
and
not
(
auto_result
[
row_index
][
col_index
]
==
None
and
elem
==
None
):
tdSql
.
checkData
(
row_index
,
col_index
,
auto_result
[
row_index
][
col_index
])
check_status
=
False
elif
auto_result
[
row_index
][
col_index
]
!=
None
and
(
auto_result
[
row_index
][
col_index
]
-
elem
>
0.00000001
):
check_status
=
False
else
:
pass
if
not
check_status
:
tdLog
.
notice
(
"asin function value has not as expected , sql is
\"
%s
\"
"
%
pow_query
)
sys
.
exit
(
1
)
else
:
tdLog
.
info
(
"asin value check pass , it work as expected ,sql is
\"
%s
\"
"
%
pow_query
)
def
test_errors
(
self
,
dbname
=
"db"
):
def
test_errors
(
self
,
dbname
=
"db"
):
error_sql_lists
=
[
error_sql_lists
=
[
...
...
tests/system-test/2-query/arctan.py
浏览文件 @
54bc2fc2
...
@@ -84,22 +84,12 @@ class TDTestCase:
...
@@ -84,22 +84,12 @@ class TDTestCase:
row_check
.
append
(
elem
)
row_check
.
append
(
elem
)
auto_result
.
append
(
row_check
)
auto_result
.
append
(
row_check
)
check_status
=
True
tdSql
.
query
(
pow_query
)
for
row_index
,
row
in
enumerate
(
pow_result
):
for
row_index
,
row
in
enumerate
(
pow_result
):
for
col_index
,
elem
in
enumerate
(
row
):
for
col_index
,
elem
in
enumerate
(
row
):
if
auto_result
[
row_index
][
col_index
]
==
None
and
elem
:
tdSql
.
checkData
(
row_index
,
col_index
,
auto_result
[
row_index
][
col_index
])
check_status
=
False
elif
auto_result
[
row_index
][
col_index
]
!=
None
and
(
auto_result
[
row_index
][
col_index
]
-
elem
>
0.00000001
):
check_status
=
False
else
:
pass
if
not
check_status
:
tdLog
.
notice
(
"atan function value has not as expected , sql is
\"
%s
\"
"
%
pow_query
)
sys
.
exit
(
1
)
else
:
tdLog
.
info
(
"atan value check pass , it work as expected ,sql is
\"
%s
\"
"
%
pow_query
)
def
test_errors
(
self
,
dbname
=
"db"
):
def
test_errors
(
self
,
dbname
=
"db"
):
error_sql_lists
=
[
error_sql_lists
=
[
f
"select atan from
{
dbname
}
.t1"
,
f
"select atan from
{
dbname
}
.t1"
,
...
...
tests/system-test/2-query/ceil.py
浏览文件 @
54bc2fc2
...
@@ -85,16 +85,11 @@ class TDTestCase:
...
@@ -85,16 +85,11 @@ class TDTestCase:
row_check
.
append
(
elem
)
row_check
.
append
(
elem
)
auto_result
.
append
(
row_check
)
auto_result
.
append
(
row_check
)
check_status
=
True
tdSql
.
query
(
ceil_query
)
for
row_index
,
row
in
enumerate
(
ceil_result
):
for
row_index
,
row
in
enumerate
(
ceil_result
):
for
col_index
,
elem
in
enumerate
(
row
):
for
col_index
,
elem
in
enumerate
(
row
):
if
auto_result
[
row_index
][
col_index
]
!=
elem
:
tdSql
.
checkData
(
row_index
,
col_index
,
auto_result
[
row_index
][
col_index
])
check_status
=
False
if
not
check_status
:
tdLog
.
notice
(
"ceil function value has not as expected , sql is
\"
%s
\"
"
%
ceil_query
)
sys
.
exit
(
1
)
else
:
tdLog
.
info
(
"ceil value check pass , it work as expected ,sql is
\"
%s
\"
"
%
ceil_query
)
def
test_errors
(
self
,
dbname
=
"db"
):
def
test_errors
(
self
,
dbname
=
"db"
):
error_sql_lists
=
[
error_sql_lists
=
[
...
...
tests/system-test/2-query/cos.py
浏览文件 @
54bc2fc2
...
@@ -84,26 +84,10 @@ class TDTestCase:
...
@@ -84,26 +84,10 @@ class TDTestCase:
row_check
.
append
(
elem
)
row_check
.
append
(
elem
)
auto_result
.
append
(
row_check
)
auto_result
.
append
(
row_check
)
check_status
=
True
tdSql
.
query
(
pow_query
)
print
(
"========"
,
pow_query
,
origin_query
)
for
row_index
,
row
in
enumerate
(
pow_result
):
for
row_index
,
row
in
enumerate
(
pow_result
):
for
col_index
,
elem
in
enumerate
(
row
):
for
col_index
,
elem
in
enumerate
(
row
):
if
auto_result
[
row_index
][
col_index
]
==
None
and
elem
:
tdSql
.
checkData
(
row_index
,
col_index
,
auto_result
[
row_index
][
col_index
])
check_status
=
False
elif
auto_result
[
row_index
][
col_index
]
!=
None
and
((
auto_result
[
row_index
][
col_index
]
!=
elem
)
and
(
str
(
auto_result
[
row_index
][
col_index
])[:
6
]
!=
str
(
elem
)[:
6
]
)):
# elif auto_result[row_index][col_index] != None and (abs(auto_result[row_index][col_index] - elem) > 0.000001):
print
(
"====="
)
print
(
row_index
,
col_index
)
print
(
auto_result
[
row_index
][
col_index
],
elem
,
origin_result
[
row_index
][
col_index
])
check_status
=
False
else
:
pass
if
not
check_status
:
tdLog
.
notice
(
"cos function value has not as expected , sql is
\"
%s
\"
"
%
pow_query
)
sys
.
exit
(
1
)
else
:
tdLog
.
info
(
"cos value check pass , it work as expected ,sql is
\"
%s
\"
"
%
pow_query
)
def
test_errors
(
self
,
dbname
=
"db"
):
def
test_errors
(
self
,
dbname
=
"db"
):
error_sql_lists
=
[
error_sql_lists
=
[
...
...
tests/system-test/2-query/floor.py
浏览文件 @
54bc2fc2
...
@@ -85,16 +85,11 @@ class TDTestCase:
...
@@ -85,16 +85,11 @@ class TDTestCase:
row_check
.
append
(
elem
)
row_check
.
append
(
elem
)
auto_result
.
append
(
row_check
)
auto_result
.
append
(
row_check
)
check_status
=
True
tdSql
.
query
(
floor_query
)
for
row_index
,
row
in
enumerate
(
floor_result
):
for
row_index
,
row
in
enumerate
(
floor_result
):
for
col_index
,
elem
in
enumerate
(
row
):
for
col_index
,
elem
in
enumerate
(
row
):
if
auto_result
[
row_index
][
col_index
]
!=
elem
:
tdSql
.
checkData
(
row_index
,
col_index
,
auto_result
[
row_index
][
col_index
])
check_status
=
False
if
not
check_status
:
tdLog
.
notice
(
"floor function value has not as expected , sql is
\"
%s
\"
"
%
floor_query
)
sys
.
exit
(
1
)
else
:
tdLog
.
info
(
"floor value check pass , it work as expected ,sql is
\"
%s
\"
"
%
floor_query
)
def
test_errors
(
self
,
dbname
=
DBNAME
):
def
test_errors
(
self
,
dbname
=
DBNAME
):
error_sql_lists
=
[
error_sql_lists
=
[
...
...
tests/system-test/2-query/log.py
浏览文件 @
54bc2fc2
...
@@ -91,7 +91,6 @@ class TDTestCase:
...
@@ -91,7 +91,6 @@ class TDTestCase:
elem
=
math
.
log
(
elem
,
base
)
elem
=
math
.
log
(
elem
,
base
)
elif
elem
<=
0
:
elif
elem
<=
0
:
elem
=
None
elem
=
None
row_check
.
append
(
elem
)
row_check
.
append
(
elem
)
auto_result
.
append
(
row_check
)
auto_result
.
append
(
row_check
)
...
...
tests/system-test/2-query/round.py
浏览文件 @
54bc2fc2
...
@@ -81,16 +81,12 @@ class TDTestCase:
...
@@ -81,16 +81,12 @@ class TDTestCase:
row_check
.
append
(
elem
)
row_check
.
append
(
elem
)
auto_result
.
append
(
row_check
)
auto_result
.
append
(
row_check
)
check_status
=
True
tdSql
.
query
(
round_query
)
for
row_index
,
row
in
enumerate
(
round_result
):
for
row_index
,
row
in
enumerate
(
round_result
):
for
col_index
,
elem
in
enumerate
(
row
):
for
col_index
,
elem
in
enumerate
(
row
):
if
auto_result
[
row_index
][
col_index
]
!=
elem
:
tdSql
.
checkData
(
row_index
,
col_index
,
auto_result
[
row_index
][
col_index
])
check_status
=
False
if
not
check_status
:
tdLog
.
notice
(
"round function value has not as expected , sql is
\"
%s
\"
"
%
round_query
)
sys
.
exit
(
1
)
else
:
tdLog
.
info
(
"round value check pass , it work as expected ,sql is
\"
%s
\"
"
%
round_query
)
def
test_errors
(
self
,
dbname
=
"db"
):
def
test_errors
(
self
,
dbname
=
"db"
):
error_sql_lists
=
[
error_sql_lists
=
[
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录