Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
43df05c1
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看板
提交
43df05c1
编写于
6月 07, 2022
作者:
wafwerar
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(os): add win32 query case
上级
dba4464d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
86 addition
and
57 deletion
+86
-57
tests/pytest/util/dnodes.py
tests/pytest/util/dnodes.py
+1
-1
tests/system-test/2-query/cast.py
tests/system-test/2-query/cast.py
+4
-4
tests/system-test/fulltest.bat
tests/system-test/fulltest.bat
+51
-51
tests/system-test/test-all.bat
tests/system-test/test-all.bat
+30
-1
未找到文件。
tests/pytest/util/dnodes.py
浏览文件 @
43df05c1
...
...
@@ -416,7 +416,7 @@ class TDDnode:
psCmd
,
shell
=
True
).
decode
(
"utf-8"
)
if
not
platform
.
system
().
lower
()
==
'windows'
:
for
port
in
range
(
6030
,
6041
):
fuserCmd
=
"fuser -k -n tcp %d"
%
port
fuserCmd
=
"fuser -k -n tcp %d
> /dev/null
"
%
port
os
.
system
(
fuserCmd
)
if
self
.
valgrind
:
time
.
sleep
(
2
)
...
...
tests/system-test/2-query/cast.py
浏览文件 @
43df05c1
...
...
@@ -565,7 +565,7 @@ class TDTestCase:
if
data_ct4_c10
[
i
]
is
None
:
tdSql
.
checkData
(
i
,
0
,
None
)
else
:
time2str
=
str
(
int
(
datetime
.
datetime
.
timestamp
(
data_ct4_c10
[
i
]
)
*
1000
))
time2str
=
str
(
int
(
(
data_ct4_c10
[
i
]
-
datetime
.
datetime
.
fromtimestamp
(
0
)).
total_seconds
(
)
*
1000
))
tdSql
.
checkData
(
i
,
0
,
time2str
)
tdSql
.
query
(
"select cast(c10 as nchar(32)) as b from t1"
)
for
i
in
range
(
len
(
data_t1_c10
)):
...
...
@@ -574,7 +574,7 @@ class TDTestCase:
elif
i
==
10
:
continue
else
:
time2str
=
str
(
int
(
datetime
.
datetime
.
timestamp
(
data_t1_c10
[
i
]
)
*
1000
))
time2str
=
str
(
int
(
(
data_t1_c10
[
i
]
-
datetime
.
datetime
.
fromtimestamp
(
0
)).
total_seconds
(
)
*
1000
))
tdSql
.
checkData
(
i
,
0
,
time2str
)
tdLog
.
printNoPrefix
(
"==========step38: cast timestamp to binary, expect no changes "
)
...
...
@@ -583,7 +583,7 @@ class TDTestCase:
if
data_ct4_c10
[
i
]
is
None
:
tdSql
.
checkData
(
i
,
0
,
None
)
else
:
time2str
=
str
(
int
(
datetime
.
datetime
.
timestamp
(
data_ct4_c10
[
i
]
)
*
1000
))
time2str
=
str
(
int
(
(
data_ct4_c10
[
i
]
-
datetime
.
datetime
.
fromtimestamp
(
0
)).
total_seconds
(
)
*
1000
))
tdSql
.
checkData
(
i
,
0
,
time2str
)
tdSql
.
query
(
"select cast(c10 as binary(32)) as b from t1"
)
for
i
in
range
(
len
(
data_t1_c10
)):
...
...
@@ -592,7 +592,7 @@ class TDTestCase:
elif
i
==
10
:
continue
else
:
time2str
=
str
(
int
(
datetime
.
datetime
.
timestamp
(
data_t1_c10
[
i
]
)
*
1000
))
time2str
=
str
(
int
(
(
data_t1_c10
[
i
]
-
datetime
.
datetime
.
fromtimestamp
(
0
)).
total_seconds
(
)
*
1000
))
tdSql
.
checkData
(
i
,
0
,
time2str
)
tdLog
.
printNoPrefix
(
"==========step39: cast constant operation to bigint, expect change to int "
)
...
...
tests/system-test/fulltest.bat
浏览文件 @
43df05c1
...
...
@@ -18,75 +18,75 @@ python3 .\test.py -f 0-others\udf_restart_taosd.py
@REM #python3 .\test.py -f 1-insert\test_stmt_muti_insert_query.py
@REM python3 .\test.py -f 1-insert\alter_stable.py
@REM python3 .\test.py -f 1-insert\alter_table.py
python3
.\test.py
-f
2
-query
\between.py
python3
.\test.py
-f
2
-query
\distinct.py
python3
.\test.py
-f
2
-query
\varchar.py
python3
.\test.py
-f
2
-query
\ltrim.py
python3
.\test.py
-f
2
-query
\rtrim.py
python3
.\test.py
-f
2
-query
\length.py
python3
.\test.py
-f
2
-query
\char_length.py
python3
.\test.py
-f
2
-query
\upper.py
python3
.\test.py
-f
2
-query
\lower.py
python3
.\test.py
-f
2
-query
\join.py
@REM
python3 .\test.py -f 2-query\between.py
@REM
python3 .\test.py -f 2-query\distinct.py
@REM
python3 .\test.py -f 2-query\varchar.py
@REM
python3 .\test.py -f 2-query\ltrim.py
@REM
python3 .\test.py -f 2-query\rtrim.py
@REM
python3 .\test.py -f 2-query\length.py
@REM
python3 .\test.py -f 2-query\char_length.py
@REM
python3 .\test.py -f 2-query\upper.py
@REM
python3 .\test.py -f 2-query\lower.py
@REM
python3 .\test.py -f 2-query\join.py
@REM python3 .\test.py -f 2-query\join2.py
@REM python3 .\test.py -f 2-query\cast.py
python3
.\test.py
-f
2
-query
\union.py
python3
.\test.py
-f
2
-query
\union1.py
python3
.\test.py
-f
2
-query
\concat.py
python3
.\test.py
-f
2
-query
\concat2.py
python3
.\test.py
-f
2
-query
\concat_ws.py
python3
.\test.py
-f
2
-query
\concat_ws2.py
python3
.\test.py
-f
2
-query
\check_tsdb.py
python3
.\test.py
-f
2
-query
\spread.py
python3
.\test.py
-f
2
-query
\hyperloglog.py
@REM
python3 .\test.py -f 2-query\union.py
@REM
python3 .\test.py -f 2-query\union1.py
@REM
python3 .\test.py -f 2-query\concat.py
@REM
python3 .\test.py -f 2-query\concat2.py
@REM
python3 .\test.py -f 2-query\concat_ws.py
@REM
python3 .\test.py -f 2-query\concat_ws2.py
@REM
python3 .\test.py -f 2-query\check_tsdb.py
@REM
python3 .\test.py -f 2-query\spread.py
@REM
python3 .\test.py -f 2-query\hyperloglog.py
@REM python3 .\test.py -f 2-query\timezone.py
python3
.\test.py
-f
2
-query
\Now.py
python3
.\test.py
-f
2
-query
\Today.py
python3
.\test.py
-f
2
-query
\max.py
python3
.\test.py
-f
2
-query
\min.py
python3
.\test.py
-f
2
-query
\count.py
python3
.\test.py
-f
2
-query
\last.py
python3
.\test.py
-f
2
-query
\first.py
python3
.\test.py
-f
2
-query
\To_iso8601.py
python3
.\test.py
-f
2
-query
\To_unixtimestamp.py
python3
.\test.py
-f
2
-query
\timetruncate.py
python3
.\test.py
-f
2
-query
\diff.py
python3
.\test.py
-f
2
-query
\Timediff.py
@REM
python3 .\test.py -f 2-query\Now.py
@REM
python3 .\test.py -f 2-query\Today.py
@REM
python3 .\test.py -f 2-query\max.py
@REM
python3 .\test.py -f 2-query\min.py
@REM
python3 .\test.py -f 2-query\count.py
@REM
python3 .\test.py -f 2-query\last.py
@REM
python3 .\test.py -f 2-query\first.py
@REM
python3 .\test.py -f 2-query\To_iso8601.py
@REM
python3 .\test.py -f 2-query\To_unixtimestamp.py
@REM
python3 .\test.py -f 2-query\timetruncate.py
@REM
python3 .\test.py -f 2-query\diff.py
@REM
python3 .\test.py -f 2-query\Timediff.py
python3
.\test.py
-f
2
-query
\top.py
python3
.\test.py
-f
2
-query
\bottom.py
python3
.\test.py
-f
2
-query
\percentile.py
python3
.\test.py
-f
2
-query
\apercentile.py
python3
.\test.py
-f
2
-query
\abs.py
python3
.\test.py
-f
2
-query
\ceil.py
@REM
python3 .\test.py -f 2-query\top.py
@REM
python3 .\test.py -f 2-query\bottom.py
@REM
python3 .\test.py -f 2-query\percentile.py
@REM
python3 .\test.py -f 2-query\apercentile.py
@REM
python3 .\test.py -f 2-query\abs.py
@REM
python3 .\test.py -f 2-query\ceil.py
@REM python3 .\test.py -f 2-query\floor.py
python3
.\test.py
-f
2
-query
\round.py
@REM
python3 .\test.py -f 2-query\round.py
@REM python3 .\test.py -f 2-query\log.py
python3
.\test.py
-f
2
-query
\pow.py
python3
.\test.py
-f
2
-query
\sqrt.py
@REM
python3 .\test.py -f 2-query\pow.py
@REM
python3 .\test.py -f 2-query\sqrt.py
@REM python3 .\test.py -f 2-query\sin.py
python3
.\test.py
-f
2
-query
\cos.py
@REM
python3 .\test.py -f 2-query\cos.py
@REM python3 .\test.py -f 2-query\tan.py
python3
.\test.py
-f
2
-query
\arcsin.py
@REM
python3 .\test.py -f 2-query\arcsin.py
@REM python3 .\test.py -f 2-query\arccos.py
python3
.\test.py
-f
2
-query
\arctan.py
python3
.\test.py
-f
2
-query
\query_cols_tags_and_or.py
@REM
python3 .\test.py -f 2-query\arctan.py
@REM
python3 .\test.py -f 2-query\query_cols_tags_and_or.py
@REM # python3 .\test.py -f 2-query\nestedQuery.py
@REM # TD-15983 subquery output duplicate name column.
@REM # Please Xiangyang Guo modify the following script
@REM # python3 .\test.py -f 2-query\nestedQuery_str.py
@REM python3 .\test.py -f 2-query\avg.py
python3
.\test.py
-f
2
-query
\elapsed.py
@REM
python3 .\test.py -f 2-query\elapsed.py
@REM python3 .\test.py -f 2-query\csum.py
python3
.\test.py
-f
2
-query
\mavg.py
python3
.\test.py
-f
2
-query
\diff.py
python3
.\test.py
-f
2
-query
\sample.py
python3
.\test.py
-f
2
-query
\function_diff.py
python3
.\test.py
-f
2
-query
\unique.py
python3
.\test.py
-f
2
-query
\stateduration.py
@REM
python3 .\test.py -f 2-query\mavg.py
@REM
python3 .\test.py -f 2-query\diff.py
@REM
python3 .\test.py -f 2-query\sample.py
@REM
python3 .\test.py -f 2-query\function_diff.py
@REM
python3 .\test.py -f 2-query\unique.py
@REM
python3 .\test.py -f 2-query\stateduration.py
@REM python3 .\test.py -f 2-query\function_stateduration.py
@REM python3 .\test.py -f 2-query\statecount.py
...
...
tests/system-test/test-all.bat
浏览文件 @
43df05c1
...
...
@@ -13,6 +13,9 @@ echo Linux Taosd Test
for
/F
"usebackq tokens=*"
%%i
in
(
fulltest
.bat
)
do
(
for
/f
"tokens=1* delims= "
%%a
in
(
"
%%i
"
)
do
if
not
"
%%a
"
==
"@REM"
(
echo
Processing
%%i
call
:GetTimeSeconds
%time%
set
time1
=
!_timeTemp!
echo
Start
at
%time%
set
/a
a
+=
1
call
%%i
ARG1
-m
%
1
>
result_
!a!
.txt
2
>
error_
!a!
.txt
if
errorlevel
1
(
call
:colorEcho
0
c
"failed"
&
echo
.
&&
echo
result
:
&&
cat
result_
!a!
.txt
&&
echo
error
:
&&
cat
error_
!a!
.txt
&&
exit
8
)
else
(
call
:colorEcho
0
a
"Success"
&
echo
.
)
...
...
@@ -21,7 +24,33 @@ for /F "usebackq tokens=*" %%i in (fulltest.bat) do (
exit
:colorEcho
call
:GetTimeSeconds
%time%
set
time2
=
%_timeTemp%
set
/a
interTime
=
%time2
%
-
%time1
%
echo
End
at
%time%
,
cast
%interTime%
s
echo
off
<
nul
set
/p
".=
%DEL%
"
>
"
%
~2"
findstr
/v /a
:
%
1
/R
"
^$
"
"
%
~2"
nul
del
"
%
~2"
>
nul
2
>&
1
i
\ No newline at end of file
del
"
%
~2"
>
nul
2
>&
1
i
goto
:eof
:GetTimeSeconds
set
tt
=
%
1
set
tt
=
%tt
:.
=
%
set
tt
=
%tt
::
=
%
set
index
=
1
for
%%a
in
(
%tt%
)
do
(
if
!index!
EQU
1
(
set
hh
=
%%a
)
^
else
if
!index!
EQU
2
(
set
mm
=
%%a
)
^
else
if
!index!
EQU
3
(
set
ss
=
%%a
)
set
/a
index
=
index
+
1
)
set
/a
_timeTemp
=(
%hh%
*
60
+
%mm%
)*
60
+
%ss%
goto
:eof
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录