Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
7b540d91
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看板
提交
7b540d91
编写于
5月 28, 2022
作者:
wafwerar
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(os): add win ctest
上级
900aa793
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
67 addition
and
50 deletion
+67
-50
cmake/cmake.options
cmake/cmake.options
+1
-1
source/dnode/mnode/impl/test/acct/CMakeLists.txt
source/dnode/mnode/impl/test/acct/CMakeLists.txt
+6
-4
source/dnode/mnode/impl/test/func/CMakeLists.txt
source/dnode/mnode/impl/test/func/CMakeLists.txt
+6
-4
source/dnode/mnode/impl/test/profile/CMakeLists.txt
source/dnode/mnode/impl/test/profile/CMakeLists.txt
+6
-4
source/dnode/mnode/impl/test/show/CMakeLists.txt
source/dnode/mnode/impl/test/show/CMakeLists.txt
+6
-4
source/libs/executor/src/executorimpl.c
source/libs/executor/src/executorimpl.c
+1
-1
source/libs/index/test/CMakeLists.txt
source/libs/index/test/CMakeLists.txt
+6
-4
source/libs/index/test/indexTests.cc
source/libs/index/test/indexTests.cc
+2
-2
source/libs/parser/test/CMakeLists.txt
source/libs/parser/test/CMakeLists.txt
+6
-4
source/libs/planner/test/CMakeLists.txt
source/libs/planner/test/CMakeLists.txt
+6
-4
source/libs/scalar/test/scalar/CMakeLists.txt
source/libs/scalar/test/scalar/CMakeLists.txt
+6
-4
source/libs/transport/test/CMakeLists.txt
source/libs/transport/test/CMakeLists.txt
+6
-4
tests/system-test/fulltest.bat
tests/system-test/fulltest.bat
+0
-1
tests/system-test/test-all.bat
tests/system-test/test-all.bat
+2
-2
tests/test/c/sdbDump.c
tests/test/c/sdbDump.c
+7
-7
未找到文件。
cmake/cmake.options
浏览文件 @
7b540d91
...
...
@@ -49,7 +49,7 @@ IF(${TD_WINDOWS})
option(
BUILD_TEST
"If build unit tests using googletest"
O
FF
O
N
)
ELSE ()
...
...
source/dnode/mnode/impl/test/acct/CMakeLists.txt
浏览文件 @
7b540d91
...
...
@@ -5,7 +5,9 @@ target_link_libraries(
PUBLIC sut
)
add_test
(
NAME acctTest
COMMAND acctTest
)
if
(
NOT TD_WINDOWS
)
add_test
(
NAME acctTest
COMMAND acctTest
)
endif
(
NOT TD_WINDOWS
)
source/dnode/mnode/impl/test/func/CMakeLists.txt
浏览文件 @
7b540d91
...
...
@@ -5,7 +5,9 @@ target_link_libraries(
PUBLIC sut
)
add_test
(
NAME funcTest
COMMAND funcTest
)
if
(
NOT TD_WINDOWS
)
add_test
(
NAME funcTest
COMMAND funcTest
)
endif
(
NOT TD_WINDOWS
)
source/dnode/mnode/impl/test/profile/CMakeLists.txt
浏览文件 @
7b540d91
...
...
@@ -5,7 +5,9 @@ target_link_libraries(
PUBLIC sut
)
add_test
(
NAME profileTest
COMMAND profileTest
)
if
(
NOT TD_WINDOWS
)
add_test
(
NAME profileTest
COMMAND profileTest
)
endif
(
NOT TD_WINDOWS
)
source/dnode/mnode/impl/test/show/CMakeLists.txt
浏览文件 @
7b540d91
...
...
@@ -5,7 +5,9 @@ target_link_libraries(
PUBLIC sut
)
add_test
(
NAME showTest
COMMAND showTest
)
if
(
NOT TD_WINDOWS
)
add_test
(
NAME showTest
COMMAND showTest
)
endif
(
NOT TD_WINDOWS
)
source/libs/executor/src/executorimpl.c
浏览文件 @
7b540d91
...
...
@@ -5197,5 +5197,5 @@ int32_t initStreamAggSupporter(SStreamAggSupporter* pSup, const char* pKey) {
if
(
bufSize
<=
pageSize
)
{
bufSize
=
pageSize
*
4
;
}
return
createDiskbasedBuf
(
&
pSup
->
pResultBuf
,
pageSize
,
bufSize
,
pKey
,
"/tmp/"
);
return
createDiskbasedBuf
(
&
pSup
->
pResultBuf
,
pageSize
,
bufSize
,
pKey
,
TD_TMP_DIR_PATH
);
}
source/libs/index/test/CMakeLists.txt
浏览文件 @
7b540d91
...
...
@@ -92,10 +92,12 @@ target_link_libraries (idxJsonUT
index
)
add_test
(
NAME idxtest
COMMAND idxTest
)
if
(
NOT TD_WINDOWS
)
add_test
(
NAME idxtest
COMMAND idxTest
)
endif
(
NOT TD_WINDOWS
)
add_test
(
NAME idxJsonUT
COMMAND idxJsonUT
...
...
source/libs/index/test/indexTests.cc
浏览文件 @
7b540d91
...
...
@@ -272,7 +272,7 @@ void validateFst() {
}
delete
m
;
}
static
std
::
string
logDir
=
"/tmp/
log"
;
static
std
::
string
logDir
=
TD_TMP_DIR_PATH
"
log"
;
static
void
initLog
()
{
const
char
*
defaultLogFileNamePrefix
=
"taoslog"
;
...
...
@@ -916,7 +916,7 @@ TEST_F(IndexEnv2, testIndexOpen) {
}
}
TEST_F
(
IndexEnv2
,
testEmptyIndexOpen
)
{
std
::
string
path
=
"/tmp/
test"
;
std
::
string
path
=
TD_TMP_DIR_PATH
"
test"
;
if
(
index
->
Init
(
path
)
!=
0
)
{
std
::
cout
<<
"failed to init index"
<<
std
::
endl
;
exit
(
1
);
...
...
source/libs/parser/test/CMakeLists.txt
浏览文件 @
7b540d91
...
...
@@ -26,7 +26,9 @@ if(${BUILD_WINGETOPT})
target_link_libraries
(
parserTest PUBLIC wingetopt
)
endif
()
add_test
(
NAME parserTest
COMMAND parserTest
)
if
(
NOT TD_WINDOWS
)
add_test
(
NAME parserTest
COMMAND parserTest
)
endif
(
NOT TD_WINDOWS
)
source/libs/planner/test/CMakeLists.txt
浏览文件 @
7b540d91
...
...
@@ -32,7 +32,9 @@ if(${BUILD_WINGETOPT})
target_link_libraries
(
plannerTest PUBLIC wingetopt
)
endif
()
add_test
(
NAME plannerTest
COMMAND plannerTest
)
if
(
NOT TD_WINDOWS
)
add_test
(
NAME plannerTest
COMMAND plannerTest
)
endif
(
NOT TD_WINDOWS
)
source/libs/scalar/test/scalar/CMakeLists.txt
浏览文件 @
7b540d91
...
...
@@ -17,7 +17,9 @@ TARGET_INCLUDE_DIRECTORIES(
PUBLIC
"
${
TD_SOURCE_DIR
}
/source/libs/parser/inc"
PRIVATE
"
${
TD_SOURCE_DIR
}
/source/libs/scalar/inc"
)
add_test
(
NAME scalarTest
COMMAND scalarTest
)
if
(
NOT TD_WINDOWS
)
add_test
(
NAME scalarTest
COMMAND scalarTest
)
endif
(
NOT TD_WINDOWS
)
source/libs/transport/test/CMakeLists.txt
浏览文件 @
7b540d91
...
...
@@ -111,10 +111,12 @@ target_link_libraries (pushServer
)
add_test
(
NAME transUT
COMMAND transUT
)
if
(
NOT TD_WINDOWS
)
add_test
(
NAME transUT
COMMAND transUT
)
endif
(
NOT TD_WINDOWS
)
add_test
(
NAME transUtilUt
COMMAND transportTest
...
...
tests/system-test/fulltest.bat
浏览文件 @
7b540d91
python3
.\test.py
-f
0
-others
\taosShell.py
python3
.\test.py
-f
0
-others
\taosShellError.py
python3
.\test.py
-f
0
-others
\taosShellNetChk.py
\ No newline at end of file
tests/system-test/test-all.bat
浏览文件 @
7b540d91
...
...
@@ -6,14 +6,14 @@ set /a a=0
@REM for /F "usebackq tokens=*" %%i in (fulltest.bat) do (
@REM echo Processing %%i
@REM set /a a+=1
@REM call %%i ARG1
-w -m localhost
> result_!a!.txt 2>error_!a!.txt
@REM call %%i ARG1 > result_!a!.txt 2>error_!a!.txt
@REM if errorlevel 1 ( call :colorEcho 0c "failed" &echo. && exit 8 ) else ( call :colorEcho 0a "Success" &echo. )
@REM )
echo
Linux
Taosd
Test
for
/F
"usebackq tokens=*"
%%i
in
(
fulltest
.bat
)
do
(
echo
Processing
%%i
set
/a
a
+=
1
call
%%i
ARG1
-
w
1
-
m
%
1
>
result_
!a!
.txt
2
>
error_
!a!
.txt
call
%%i
ARG1
-m
%
1
>
result_
!a!
.txt
2
>
error_
!a!
.txt
if
errorlevel
1
(
call
:colorEcho
0
c
"failed"
&
echo
.
&&
exit
8
)
else
(
call
:colorEcho
0
a
"Success"
&
echo
.
)
)
exit
...
...
tests/test/c/sdbDump.c
浏览文件 @
7b540d91
...
...
@@ -20,13 +20,13 @@
#include "tconfig.h"
#include "tjson.h"
#define TMP_DNODE_DIR
"/tmp/
dumpsdb"
#define TMP_MNODE_DIR
"/tmp/
dumpsdb/mnode"
#define TMP_SDB_DATA_DIR
"/tmp/
dumpsdb/mnode/data"
#define TMP_SDB_SYNC_DIR
"/tmp/
dumpsdb/mnode/sync"
#define TMP_SDB_DATA_FILE
"/tmp/
dumpsdb/mnode/data/sdb.data"
#define TMP_SDB_RAFT_CFG_FILE
"/tmp/
dumpsdb/mnode/sync/raft_config.json"
#define TMP_SDB_RAFT_STORE_FILE
"/tmp/
dumpsdb/mnode/sync/raft_store.json"
#define TMP_DNODE_DIR
TD_TMP_DIR_PATH "
dumpsdb"
#define TMP_MNODE_DIR
TD_TMP_DIR_PATH "
dumpsdb/mnode"
#define TMP_SDB_DATA_DIR
TD_TMP_DIR_PATH "
dumpsdb/mnode/data"
#define TMP_SDB_SYNC_DIR
TD_TMP_DIR_PATH "
dumpsdb/mnode/sync"
#define TMP_SDB_DATA_FILE
TD_TMP_DIR_PATH "
dumpsdb/mnode/data/sdb.data"
#define TMP_SDB_RAFT_CFG_FILE
TD_TMP_DIR_PATH "
dumpsdb/mnode/sync/raft_config.json"
#define TMP_SDB_RAFT_STORE_FILE
TD_TMP_DIR_PATH "
dumpsdb/mnode/sync/raft_store.json"
void
reportStartup
(
const
char
*
name
,
const
char
*
desc
)
{}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录