Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
6dd67984
M
milvus
项目概览
milvus
/
milvus
大约 1 年 前同步成功
通知
261
Star
22476
Fork
2472
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6dd67984
编写于
7月 30, 2019
作者:
Z
zhiru
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
disable mysql unit test
Former-commit-id: cc3158053f3735e701d6c3de940eebeb25abafdd
上级
71c17722
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
14 addition
and
25 deletion
+14
-25
cpp/unittest/db/CMakeLists.txt
cpp/unittest/db/CMakeLists.txt
+1
-12
cpp/unittest/db/mysql_db_test.cpp
cpp/unittest/db/mysql_db_test.cpp
+4
-4
cpp/unittest/db/mysql_meta_test.cpp
cpp/unittest/db/mysql_meta_test.cpp
+5
-5
cpp/unittest/db/utils.cpp
cpp/unittest/db/utils.cpp
+2
-2
cpp/unittest/db/utils.h
cpp/unittest/db/utils.h
+2
-2
未找到文件。
cpp/unittest/db/CMakeLists.txt
浏览文件 @
6dd67984
...
...
@@ -64,17 +64,6 @@ set(knowhere_libs
cublas
)
target_link_libraries
(
db_test
${
knowhere_libs
}
${
db_libs
}
${
unittest_libs
}
sqlite
boost_system_static
boost_filesystem_static
lz4
mysqlpp
)
if
(
${
BUILD_FAISS_WITH_MKL
}
STREQUAL
"ON"
)
set
(
db_libs
${
db_libs
}
${
MKL_LIBS
}
${
MKL_LIBS
}
)
else
()
...
...
@@ -83,7 +72,7 @@ else()
openblas
)
endif
()
target_link_libraries
(
db_test
${
db_libs
}
${
unittest_libs
}
)
target_link_libraries
(
db_test
${
db_libs
}
${
knowhere_libs
}
${
unittest_libs
}
)
install
(
TARGETS db_test DESTINATION bin
)
cpp/unittest/db/mysql_db_test.cpp
浏览文件 @
6dd67984
...
...
@@ -46,7 +46,7 @@ namespace {
}
TEST_F
(
MySQLDBTest
,
DB_TEST
)
{
TEST_F
(
DISABLED_
MySQLDBTest
,
DB_TEST
)
{
auto
options
=
GetOptions
();
auto
db_
=
engine
::
DBFactory
::
Build
(
options
);
...
...
@@ -139,7 +139,7 @@ TEST_F(MySQLDBTest, DB_TEST) {
delete
dummyDB
;
};
TEST_F
(
MySQLDBTest
,
SEARCH_TEST
)
{
TEST_F
(
DISABLED_
MySQLDBTest
,
SEARCH_TEST
)
{
auto
options
=
GetOptions
();
auto
db_
=
engine
::
DBFactory
::
Build
(
options
);
...
...
@@ -202,7 +202,7 @@ TEST_F(MySQLDBTest, SEARCH_TEST) {
// TODO(linxj): add groundTruth assert
};
TEST_F
(
MySQLDBTest
,
ARHIVE_DISK_CHECK
)
{
TEST_F
(
DISABLED_
MySQLDBTest
,
ARHIVE_DISK_CHECK
)
{
auto
options
=
GetOptions
();
options
.
meta
.
archive_conf
=
engine
::
ArchiveConf
(
"delete"
,
"disk:1"
);
...
...
@@ -258,7 +258,7 @@ TEST_F(MySQLDBTest, ARHIVE_DISK_CHECK) {
delete
dummyDB
;
};
TEST_F
(
MySQLDBTest
,
DELETE_TEST
)
{
TEST_F
(
DISABLED_
MySQLDBTest
,
DELETE_TEST
)
{
auto
options
=
GetOptions
();
options
.
meta
.
archive_conf
=
engine
::
ArchiveConf
(
"delete"
,
"disk:1"
);
...
...
cpp/unittest/db/mysql_meta_test.cpp
浏览文件 @
6dd67984
...
...
@@ -21,7 +21,7 @@
using
namespace
zilliz
::
milvus
::
engine
;
TEST_F
(
MySQLTest
,
TABLE_TEST
)
{
TEST_F
(
DISABLED_
MySQLTest
,
TABLE_TEST
)
{
DBMetaOptions
options
;
try
{
options
=
getDBMetaOptions
();
...
...
@@ -63,7 +63,7 @@ TEST_F(MySQLTest, TABLE_TEST) {
ASSERT_TRUE
(
status
.
ok
());
}
TEST_F
(
MySQLTest
,
TABLE_FILE_TEST
)
{
TEST_F
(
DISABLED_
MySQLTest
,
TABLE_FILE_TEST
)
{
DBMetaOptions
options
;
try
{
options
=
getDBMetaOptions
();
...
...
@@ -136,7 +136,7 @@ TEST_F(MySQLTest, TABLE_FILE_TEST) {
ASSERT_TRUE
(
status
.
ok
());
}
TEST_F
(
MySQLTest
,
ARCHIVE_TEST_DAYS
)
{
TEST_F
(
DISABLED_
MySQLTest
,
ARCHIVE_TEST_DAYS
)
{
srand
(
time
(
0
));
DBMetaOptions
options
;
try
{
...
...
@@ -198,7 +198,7 @@ TEST_F(MySQLTest, ARCHIVE_TEST_DAYS) {
ASSERT_TRUE
(
status
.
ok
());
}
TEST_F
(
MySQLTest
,
ARCHIVE_TEST_DISK
)
{
TEST_F
(
DISABLED_
MySQLTest
,
ARCHIVE_TEST_DISK
)
{
DBMetaOptions
options
;
try
{
options
=
getDBMetaOptions
();
...
...
@@ -252,7 +252,7 @@ TEST_F(MySQLTest, ARCHIVE_TEST_DISK) {
ASSERT_TRUE
(
status
.
ok
());
}
TEST_F
(
MySQLTest
,
TABLE_FILES_TEST
)
{
TEST_F
(
DISABLED_
MySQLTest
,
TABLE_FILES_TEST
)
{
DBMetaOptions
options
;
try
{
options
=
getDBMetaOptions
();
...
...
cpp/unittest/db/utils.cpp
浏览文件 @
6dd67984
...
...
@@ -85,7 +85,7 @@ void MetaTest::TearDown() {
impl_
->
DropAll
();
}
zilliz
::
milvus
::
engine
::
DBMetaOptions
MySQLTest
::
getDBMetaOptions
()
{
zilliz
::
milvus
::
engine
::
DBMetaOptions
DISABLED_
MySQLTest
::
getDBMetaOptions
()
{
// std::string path = "/tmp/milvus_test";
// engine::DBMetaOptions options = engine::DBMetaOptionsFactory::Build(path);
zilliz
::
milvus
::
engine
::
DBMetaOptions
options
;
...
...
@@ -99,7 +99,7 @@ zilliz::milvus::engine::DBMetaOptions MySQLTest::getDBMetaOptions() {
return
options
;
}
zilliz
::
milvus
::
engine
::
Options
MySQLDBTest
::
GetOptions
()
{
zilliz
::
milvus
::
engine
::
Options
DISABLED_
MySQLDBTest
::
GetOptions
()
{
auto
options
=
engine
::
OptionsFactory
::
Build
();
options
.
meta
.
path
=
"/tmp/milvus_test"
;
options
.
meta
.
backend_uri
=
DBTestEnvironment
::
getURI
();
...
...
cpp/unittest/db/utils.h
浏览文件 @
6dd67984
...
...
@@ -77,13 +77,13 @@ class MetaTest : public DBTest {
virtual
void
TearDown
()
override
;
};
class
MySQLTest
:
public
::
testing
::
Test
{
class
DISABLED_
MySQLTest
:
public
::
testing
::
Test
{
protected:
// std::shared_ptr<zilliz::milvus::engine::meta::MySQLMetaImpl> impl_;
zilliz
::
milvus
::
engine
::
DBMetaOptions
getDBMetaOptions
();
};
class
MySQLDBTest
:
public
::
testing
::
Test
{
class
DISABLED_
MySQLDBTest
:
public
::
testing
::
Test
{
protected:
zilliz
::
milvus
::
engine
::
Options
GetOptions
();
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录