Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
d5ab6209
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看板
提交
d5ab6209
编写于
6月 24, 2022
作者:
wafwerar
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test: add test time count print
上级
778d58c2
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
88 addition
and
21 deletion
+88
-21
tests/script/sh/cfg.bat
tests/script/sh/cfg.bat
+2
-2
tests/script/sh/copy_udf.bat
tests/script/sh/copy_udf.bat
+1
-1
tests/script/sh/deploy.bat
tests/script/sh/deploy.bat
+2
-2
tests/script/sh/exec.bat
tests/script/sh/exec.bat
+2
-2
tests/script/tsim/sync/3Replica1VgElect.sim
tests/script/tsim/sync/3Replica1VgElect.sim
+4
-4
tests/script/tsim/sync/3Replica5VgElect.sim
tests/script/tsim/sync/3Replica5VgElect.sim
+4
-4
tests/script/tsim/sync/oneReplica5VgElect.sim
tests/script/tsim/sync/oneReplica5VgElect.sim
+4
-4
tests/script/tsim/tmq/consume.bat
tests/script/tsim/tmq/consume.bat
+67
-0
tests/script/wtest.bat
tests/script/wtest.bat
+2
-2
未找到文件。
tests/script/sh/cfg.bat
浏览文件 @
d5ab6209
...
...
@@ -16,12 +16,12 @@ rem echo NODE: %NODE%
set
SCRIPT_DIR
=
%~dp0
..\
rem echo SCRIPT_DIR: %SCRIPT_DIR%
set
BUILD_DIR
=
%SCRIPT_DIR%
..\..\..\debug\build\bin\
echo
%cd%
|
grep
community
>
nul
&&
set
"BUILD_DIR=
%SCRIPT_DIR%
..\..\..\debug\build\bin\"
||
set
"BUILD_DIR=
%SCRIPT_DIR%
..\..\debug\build\bin\"
set
TSIM
=
%BUILD_DIR%
tsim
rem echo BUILD_DIR: %BUILD_DIR%
rem echo TSIM: %TSIM%
set
SIM_DIR
=
%SCRIPT_DIR%
..\..\..\sim\
echo
%cd%
|
grep
community
>
nul
&&
set
"SIM_DIR=
%SCRIPT_DIR%
..\..\..\sim\"
||
set
"SIM_DIR=
%SCRIPT_DIR%
..\..\sim\"
rem echo SIM_DIR: %SIM_DIR%
set
NODE_DIR
=
%SIM_DIR%%
NODE_NAME
%
\
...
...
tests/script/sh/copy_udf.bat
浏览文件 @
d5ab6209
...
...
@@ -4,7 +4,7 @@ echo Executing copy_udf.bat
set
SCRIPT_DIR
=
%cd%
echo
SCRIPT_DIR
:
%SCRIPT_DIR%
cd
..\
..\..
echo
%cd%
|
grep
community
>
nul
&&
cd
..\..\..
||
cd
..\..
set
TAOS_DIR
=
%cd%
echo
find
udf
library
in
%TAOS_DIR%
set
UDF1_DIR
=
%TAOS_DIR%
\debug\build\lib\udf1.dll
...
...
tests/script/sh/deploy.bat
浏览文件 @
d5ab6209
...
...
@@ -13,12 +13,12 @@ rem echo NODE: %NODE%
set
SCRIPT_DIR
=
%~dp0
..\
rem echo SCRIPT_DIR: %SCRIPT_DIR%
set
BUILD_DIR
=
%SCRIPT_DIR%
..\..\..\debug\build\bin\
echo
%cd%
|
grep
community
>
nul
&&
set
"BUILD_DIR=
%SCRIPT_DIR%
..\..\..\debug\build\bin\"
||
set
"BUILD_DIR=
%SCRIPT_DIR%
..\..\debug\build\bin\"
set
TSIM
=
%BUILD_DIR%
tsim
rem echo BUILD_DIR: %BUILD_DIR%
rem echo TSIM: %TSIM%
set
SIM_DIR
=
%SCRIPT_DIR%
..\..\..\sim\
echo
%cd%
|
grep
community
>
nul
&&
set
"SIM_DIR=
%SCRIPT_DIR%
..\..\..\sim\"
||
set
"SIM_DIR=
%SCRIPT_DIR%
..\..\sim\"
rem echo SIM_DIR: %SIM_DIR%
set
NODE_DIR
=
%SIM_DIR%%
NODE_NAME
%
\
...
...
tests/script/sh/exec.bat
浏览文件 @
d5ab6209
...
...
@@ -13,12 +13,12 @@ rem echo NODE: %EXEC_OPTON%
set
SCRIPT_DIR
=
%~dp0
..\
rem echo SCRIPT_DIR: %SCRIPT_DIR%
set
BUILD_DIR
=
%SCRIPT_DIR%
..\..\..\debug\build\bin\
echo
%cd%
|
grep
community
>
nul
&&
set
"BUILD_DIR=
%SCRIPT_DIR%
..\..\..\debug\build\bin\"
||
set
"BUILD_DIR=
%SCRIPT_DIR%
..\..\debug\build\bin\"
set
TAOSD
=
%BUILD_DIR%
taosd
rem echo BUILD_DIR: %BUILD_DIR%
rem echo TAOSD: %TAOSD%
set
SIM_DIR
=
%SCRIPT_DIR%
..\..\..\sim\
echo
%cd%
|
grep
community
>
nul
&&
set
"SIM_DIR=
%SCRIPT_DIR%
..\..\..\sim\"
||
set
"SIM_DIR=
%SCRIPT_DIR%
..\..\sim\"
rem echo SIM_DIR: %SIM_DIR%
set
NODE_DIR
=
%SIM_DIR%%
NODE_NAME
%
\
...
...
tests/script/tsim/sync/3Replica1VgElect.sim
浏览文件 @
d5ab6209
...
...
@@ -197,22 +197,22 @@ print $switch_loop_cnt
if $switch_loop_cnt == 1 then
sql show vgroups
$dnodeId = $data[
1
][3]
$dnodeId = $data[
0
][3]
$dnodeId = dnode . $dnodeId
goto switch_leader_to_offine_loop
elif $switch_loop_cnt == 2 then
sql show vgroups
$dnodeId = $data[
2
][3]
$dnodeId = $data[
0
][3]
$dnodeId = dnode . $dnodeId
goto switch_leader_to_offine_loop
elif $switch_loop_cnt == 3 then
sql show vgroups
$dnodeId = $data[
3
][3]
$dnodeId = $data[
0
][3]
$dnodeId = dnode . $dnodeId
goto switch_leader_to_offine_loop
elif $switch_loop_cnt == 4 then
sql show vgroups
$dnodeId = $data[
4
][3]
$dnodeId = $data[
0
][3]
$dnodeId = dnode . $dnodeId
goto switch_leader_to_offine_loop
else
...
...
tests/script/tsim/sync/3Replica5VgElect.sim
浏览文件 @
d5ab6209
...
...
@@ -290,22 +290,22 @@ print $switch_loop_cnt
if $switch_loop_cnt == 1 then
sql show vgroups
$dnodeId = $data[
1
][3]
$dnodeId = $data[
0
][3]
$dnodeId = dnode . $dnodeId
goto switch_leader_to_offine_loop
elif $switch_loop_cnt == 2 then
sql show vgroups
$dnodeId = $data[
2
][3]
$dnodeId = $data[
0
][3]
$dnodeId = dnode . $dnodeId
goto switch_leader_to_offine_loop
elif $switch_loop_cnt == 3 then
sql show vgroups
$dnodeId = $data[
3
][3]
$dnodeId = $data[
0
][3]
$dnodeId = dnode . $dnodeId
goto switch_leader_to_offine_loop
elif $switch_loop_cnt == 4 then
sql show vgroups
$dnodeId = $data[
4
][3]
$dnodeId = $data[
0
][3]
$dnodeId = dnode . $dnodeId
goto switch_leader_to_offine_loop
else
...
...
tests/script/tsim/sync/oneReplica5VgElect.sim
浏览文件 @
d5ab6209
...
...
@@ -227,22 +227,22 @@ print $switch_loop_cnt
if $switch_loop_cnt == 1 then
sql show vgroups
$dnodeId = $data[
1
][3]
$dnodeId = $data[
0
][3]
$dnodeId = dnode . $dnodeId
goto switch_leader_to_offine_loop
elif $switch_loop_cnt == 2 then
sql show vgroups
$dnodeId = $data[
2
][3]
$dnodeId = $data[
0
][3]
$dnodeId = dnode . $dnodeId
goto switch_leader_to_offine_loop
elif $switch_loop_cnt == 3 then
sql show vgroups
$dnodeId = $data[
3
][3]
$dnodeId = $data[
0
][3]
$dnodeId = dnode . $dnodeId
goto switch_leader_to_offine_loop
elif $switch_loop_cnt == 4 then
sql show vgroups
$dnodeId = $data[
4
][3]
$dnodeId = $data[
0
][3]
$dnodeId = dnode . $dnodeId
goto switch_leader_to_offine_loop
else
...
...
tests/script/tsim/tmq/consume.bat
0 → 100644
浏览文件 @
d5ab6209
@echo
off
set
EXEC_OPTON
=
start
set
DB_NAME
=
db
set
CDB_NAME
=
db
set
/a
POLL_DELAY
=
5
set
/a
VALGRIND
=
0
set
SIGNAL
=
SIGINT
set
/a
SHOW_MSG
=
0
set
/a
SHOW_ROW
=
0
set
/a
EXP_USE_SNAPSHOT
=
0
:param
if
"
%
1"
==
""
(
goto
:end
)
if
%
1
==
-d
(
set
"DB_NAME=
%
2"
&&
shift
&&
shift
&&
goto
:param
)
if
%
1
==
-g
(
set
"SHOW_MSG=
%
2"
&&
shift
&&
shift
&&
goto
:param
)
if
%
1
==
-r
(
set
"SHOW_ROW=
%
2"
&&
shift
&&
shift
&&
goto
:param
)
if
%
1
==
-s
(
set
"EXEC_OPTON=
%
2"
&&
shift
&&
shift
&&
goto
:param
)
if
%
1
==
-v
(
set
"VALGRIND=1"
&&
shift
&&
goto
:param
)
if
%
1
==
-y
(
set
"POLL_DELAY=
%
2"
&&
shift
&&
shift
&&
goto
:param
)
if
%
1
==
-x
(
set
"SIGNAL=
%
2"
&&
shift
&&
shift
&&
goto
:param
)
if
%
1
==
-w
(
set
"CDB_NAME=
%
2"
&&
shift
&&
shift
&&
goto
:param
)
if
%
1
==
-e
(
set
"EXP_USE_SNAPSHOT=
%
2"
&&
shift
&&
shift
&&
goto
:param
)
echo
unkown
argument
%
1
goto
:eof
:end
echo
EXEC_OPTON
%EXEC_OPTON%
echo
DB_NAME
%DB_NAME%
echo
CDB_NAME
%CDB_NAME%
echo
POLL_DELAY
%POLL_DELAY%
echo
VALGRIND
%VALGRIND%
echo
SIGNAL
%SIGNAL%
echo
SHOW_MSG
%SHOW_MSG%
echo
SHOW_ROW
%SHOW_ROW%
echo
EXP_USE_SNAPSHOT
%EXP_USE_SNAPSHOT%
echo
%cd%
|
grep
community
>
nul
&&
cd
..\..\..
||
cd
..\..
set
BUILD_DIR
=
%cd%
\debug\build\bin
set
SIM_DIR
=
%cd%
\sim
set
PRG_DIR
=
%SIM_DIR%
\tsim
set
CFG_DIR
=
%PRG_DIR%
\cfg
set
LOG_DIR
=
%PRG_DIR%
\log
set
PROGRAM
=
%BUILD_DIR%
\tmq_sim.exe
echo
------------------------------------------------------------------------
echo
BUILD_DIR
:
%BUILD_DIR%
echo
SIM_DIR
:
%SIM_DIR%
echo
CFG_DIR
:
%CFG_DIR%
echo
PRG_DIR
:
%PRG_DIR%
echo
CFG_DIR
:
%CFG_DIR%
echo
LOG_DIR
:
%LOG_DIR%
echo
PROGRAM
:
%PROGRAM%
echo
POLL_DELAY
:
%POLL_DELAY%
echo
DB_NAME
:
%DB_NAME%
echo
------------------------------------------------------------------------
if
"
%EXEC_OPTON%
"
==
"start"
(
echo
mintty
-h
never
%PROGRAM%
-c
%CFG_DIR%
-y
%POLL_DELAY%
-d
%DB_NAME%
-g
%SHOW_MSG%
-r
%SHOW_ROW%
-w
%CDB_NAME%
-e
%EXP_USE_SNAPSHOT%
mintty
-h
never
%PROGRAM%
-c
%CFG_DIR%
-y
%POLL_DELAY%
-d
%DB_NAME%
-g
%SHOW_MSG%
-r
%SHOW_ROW%
-w
%CDB_NAME%
-e
%EXP_USE_SNAPSHOT%
)
else
(
if
"
%SIGNAL%
"
==
"SIGKILL"
(
ps
|
grep
tmq_sim
|
awk
'{print $2}'
|
xargs
kill
-
9
)
else
(
ps
|
grep
tmq_sim
|
awk
'{print $2}'
|
xargs
kill
-SIGINT
)
)
goto
:eof
tests/script/wtest.bat
浏览文件 @
d5ab6209
...
...
@@ -6,12 +6,12 @@ rem echo Start TDengine Testing Case ...
set
"SCRIPT_DIR=
%~dp0
"
rem echo SCRIPT_DIR: %SCRIPT_DIR%
set
"BUILD_DIR=
%SCRIPT_DIR%
..\
..\..\debug\build\bin\"
echo
%cd%
|
grep
community
>
nul
&&
set
"BUILD_DIR=
%SCRIPT_DIR%
..\..\..\debug\build\bin\"
||
set
"BUILD_DIR=
%SCRIPT_DIR%
..\..\debug\build\bin\"
set
"TSIM=
%BUILD_DIR%
tsim"
rem echo BUILD_DIR: %BUILD_DIR%
rem echo TSIM: %TSIM%
set
"SIM_DIR=
%SCRIPT_DIR%
..\
..\..\sim\"
echo
%cd%
|
grep
community
>
nul
&&
set
"SIM_DIR=
%SCRIPT_DIR%
..\..\..\sim\"
||
set
"SIM_DIR=
%SCRIPT_DIR%
..\..\sim\"
rem echo SIM_DIR: %SIM_DIR%
set
"TSIM_DIR=
%SIM_DIR%
tsim\"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录