Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
fff9fd92
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1187
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看板
未验证
提交
fff9fd92
编写于
6月 27, 2022
作者:
wafwerar
提交者:
GitHub
6月 27, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #14281 from taosdata/fix/ZhiqiangWang/TD-16357-add-win-newest-test
test: add win newest test
上级
cf6f7516
d4ba3e3d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
41 addition
and
119 deletion
+41
-119
source/libs/parser/src/parUtil.c
source/libs/parser/src/parUtil.c
+5
-0
tests/script/test-all.bat
tests/script/test-all.bat
+18
-8
tests/system-test/fulltest.bat
tests/system-test/fulltest.bat
+0
-102
tests/system-test/test-all.bat
tests/system-test/test-all.bat
+18
-9
未找到文件。
source/libs/parser/src/parUtil.c
浏览文件 @
fff9fd92
...
...
@@ -337,7 +337,11 @@ int32_t trimString(const char* src, int32_t len, char* dst, int32_t dlen) {
static
bool
isValidateTag
(
char
*
input
)
{
if
(
!
input
)
return
false
;
for
(
size_t
i
=
0
;
i
<
strlen
(
input
);
++
i
)
{
#ifdef WINDOWS
if
(
input
[
i
]
<
0x20
||
input
[
i
]
>
0x7E
)
return
false
;
#else
if
(
isprint
(
input
[
i
])
==
0
)
return
false
;
#endif
}
return
true
;
}
...
...
@@ -377,6 +381,7 @@ int32_t parseJsontoTagData(const char* json, SArray* pTagVals, STag** ppTag, SMs
char
*
jsonKey
=
item
->
string
;
if
(
!
isValidateTag
(
jsonKey
))
{
fprintf
(
stdout
,
"%s(%d) %s %08"
PRId64
"
\n
"
,
__FILE__
,
__LINE__
,
__func__
,
taosGetSelfPthreadId
());
fflush
(
stdout
);
retCode
=
buildSyntaxErrMsg
(
pMsgBuf
,
"json key not validate"
,
jsonKey
);
goto
end
;
}
...
...
tests/script/test-all.bat
浏览文件 @
fff9fd92
...
...
@@ -11,14 +11,17 @@ if not "%2" == "" (
)
for
/F
"usebackq tokens=*"
%%i
in
(
!caseFile!
)
do
(
set
line
=
%%i
if
"
!
line:~,9
!
"
==
"./test.sh"
(
set
/a
a
+=
1
echo
!a!
Processing
%%i
call
:GetTimeSeconds
!time!
set
time1
=
!_timeTemp!
echo
Start
at
!time!
call
!
line
:./test.sh
=
wtest
.bat
!
>
result_
!a!
.txt
2
>
error_
!a!
.txt
if
errorlevel
1
(
call
:colorEcho
0
c
"failed"
&
echo
.
&&
set
/a
exitNum
=
8
&&
echo
%%i
>>
failed
.txt
)
else
(
call
:colorEcho
0
a
"Success"
&
echo
.
)
call
:CheckSkipCase
%%i
if
!skipCase!
==
false
(
if
"
!
line:~,9
!
"
==
"./test.sh"
(
set
/a
a
+=
1
echo
!a!
Processing
%%i
call
:GetTimeSeconds
!time!
set
time1
=
!_timeTemp!
echo
Start
at
!time!
call
!
line
:./test.sh
=
wtest
.bat
!
>
result_
!a!
.txt
2
>
error_
!a!
.txt
if
errorlevel
1
(
call
:colorEcho
0
c
"failed"
&
echo
.
&&
set
/a
exitNum
=
8
&&
echo
%%i
>>
failed
.txt
)
else
(
call
:colorEcho
0
a
"Success"
&
echo
.
)
)
)
)
exit
!exitNum!
...
...
@@ -56,3 +59,10 @@ for %%a in (%tt%) do (
)
set
/a
_timeTemp
=(
%hh%
*
60
+
%mm%
)*
60
+
%ss%
goto
:eof
:CheckSkipCase
set
skipCase
=
false
if
"
%
*"
==
"./test.sh -f tsim/query/scalarFunction.sim"
(
set
skipCase
=
true
)
if
"
%
*"
==
"./test.sh -f tsim/stream/distributeInterval0.sim"
(
set
skipCase
=
true
)
if
"
%
*"
==
"./test.sh -f tsim/sma/rsmaCreateInsertQuery.sim"
(
set
skipCase
=
true
)
:goto
eof
\ No newline at end of file
tests/system-test/fulltest.bat
已删除
100644 → 0
浏览文件 @
cf6f7516
python3
.\test.py
-f
0
-others
\taosShell.py
python3
.\test.py
-f
0
-others
\taosShellError.py
python3
.\test.py
-f
0
-others
\taosShellNetChk.py
python3
.\test.py
-f
0
-others
\telemetry.py
python3
.\test.py
-f
0
-others
\taosdMonitor.py
python3
.\test.py
-f
0
-others
\udfTest.py
python3
.\test.py
-f
0
-others
\udf_create.py
python3
.\test.py
-f
0
-others
\udf_restart_taosd.py
python3
.\test.py
-f
0
-others
\cachelast.py
python3
.\test.py
-f
0
-others
\user_control.py
python3
.\test.py
-f
0
-others
\fsync.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_json_taosc_insert.py
@REM #python3 .\test.py -f 1-insert\test_stmt_muti_insert_query.py
python3
.\test.py
-f
1
-insert
\alter_stable.py
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
python3
.\test.py
-f
2
-query
\join2.py
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
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
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
python3
.\test.py
-f
2
-query
\floor.py
python3
.\test.py
-f
2
-query
\round.py
python3
.\test.py
-f
2
-query
\log.py
python3
.\test.py
-f
2
-query
\pow.py
python3
.\test.py
-f
2
-query
\sqrt.py
python3
.\test.py
-f
2
-query
\sin.py
python3
.\test.py
-f
2
-query
\cos.py
python3
.\test.py
-f
2
-query
\tan.py
python3
.\test.py
-f
2
-query
\arcsin.py
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\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
python3
.\test.py
-f
2
-query
\avg.py
python3
.\test.py
-f
2
-query
\elapsed.py
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
python3
.\test.py
-f
2
-query
\function_stateduration.py
python3
.\test.py
-f
2
-query
\statecount.py
python3
.\test.py
-f
7
-tmq
\basic5.py
python3
.\test.py
-f
7
-tmq
\subscribeDb.py
python3
.\test.py
-f
7
-tmq
\subscribeDb0.py
python3
.\test.py
-f
7
-tmq
\subscribeDb1.py
python3
.\test.py
-f
7
-tmq
\subscribeStb.py
python3
.\test.py
-f
7
-tmq
\subscribeStb0.py
python3
.\test.py
-f
7
-tmq
\subscribeStb1.py
python3
.\test.py
-f
7
-tmq
\subscribeStb2.py
python3
.\test.py
-f
7
-tmq
\subscribeStb3.py
python3
.\test.py
-f
7
-tmq
\subscribeStb4.py
python3
.\test.py
-f
7
-tmq
\db.py
\ No newline at end of file
tests/system-test/test-all.bat
浏览文件 @
fff9fd92
...
...
@@ -6,19 +6,23 @@ if "%1" == "full" (
echo
Windows
Taosd
Full
Test
set
/a
exitNum
=
0
del
/Q /F
failed
.txt
set
caseFile
=
"fulltest.
bat
"
set
caseFile
=
"fulltest.
sh
"
if
not
"
%
2"
==
""
(
set
caseFile
=
"
%
2"
)
for
/F
"usebackq tokens=*"
%%i
in
(
!caseFile!
)
do
(
for
/f
"tokens=1* delims= "
%%a
in
(
"
%%i
"
)
do
if
not
"
%%a
"
==
"@REM"
(
set
/a
a
+=
1
echo
!a!
Processing
%%i
call
:GetTimeSeconds
!time!
set
time1
=
!_timeTemp!
echo
Start
at
!time!
call
%%i
ARG1
>
result_
!a!
.txt
2
>
error_
!a!
.txt
if
errorlevel
1
(
call
:colorEcho
0
c
"failed"
&
echo
.
&&
set
/a
exitNum
=
8
&&
echo
%%i
>>
failed
.txt
)
else
(
call
:colorEcho
0
a
"Success"
&
echo
.
)
call
:CheckSkipCase
%%i
if
!skipCase!
==
false
(
set
line
=
%%i
if
"
!
line:~,7
!
"
==
"python3"
(
set
/a
a
+=
1
echo
!a!
Processing
%%i
call
:GetTimeSeconds
!time!
set
time1
=
!_timeTemp!
echo
Start
at
!time!
call
%%i
ARG1
>
result_
!a!
.txt
2
>
error_
!a!
.txt
if
errorlevel
1
(
call
:colorEcho
0
c
"failed"
&
echo
.
&&
set
/a
exitNum
=
8
&&
echo
%%i
>>
failed
.txt
)
else
(
call
:colorEcho
0
a
"Success"
&
echo
.
)
)
)
)
exit
!exitNum!
...
...
@@ -83,3 +87,8 @@ for %%a in (%tt%) do (
)
set
/a
_timeTemp
=(
%hh%
*
60
+
%mm%
)*
60
+
%ss%
goto
:eof
:CheckSkipCase
set
skipCase
=
false
if
"
%
*"
==
"python3 ./test.py -f 1-insert/insertWithMoreVgroup.py"
(
set
skipCase
=
true
)
: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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录