提交 d0444029 编写于 作者: J Jeff

Merge branch 'branch-0.4.0' into 'branch-0.4.0'

MS-297: disable mysql unit test

See merge request megasearch/milvus!286

Former-commit-id: 74d0f3f6a2c661a5ace48e5507fb75df963a1a88
...@@ -2,6 +2,16 @@ ...@@ -2,6 +2,16 @@
Please mark all change in change log and use the ticket from JIRA. Please mark all change in change log and use the ticket from JIRA.
# Milvus 0.4.0 (2019-07-28)
## Bug
## Improvement
## New Feature
## Task
- MS-297 - disable mysql unit test
# Milvus 0.3.1 (2019-07-10) # Milvus 0.3.1 (2019-07-10)
......
...@@ -64,17 +64,6 @@ set(knowhere_libs ...@@ -64,17 +64,6 @@ set(knowhere_libs
cublas 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") if(${BUILD_FAISS_WITH_MKL} STREQUAL "ON")
set(db_libs ${db_libs} ${MKL_LIBS} ${MKL_LIBS}) set(db_libs ${db_libs} ${MKL_LIBS} ${MKL_LIBS})
else() else()
...@@ -83,7 +72,7 @@ else() ...@@ -83,7 +72,7 @@ else()
openblas) openblas)
endif() 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) install(TARGETS db_test DESTINATION bin)
...@@ -46,7 +46,7 @@ namespace { ...@@ -46,7 +46,7 @@ namespace {
} }
TEST_F(MySQLDBTest, DB_TEST) { TEST_F(DISABLED_MySQLDBTest, DB_TEST) {
auto options = GetOptions(); auto options = GetOptions();
auto db_ = engine::DBFactory::Build(options); auto db_ = engine::DBFactory::Build(options);
...@@ -139,7 +139,7 @@ TEST_F(MySQLDBTest, DB_TEST) { ...@@ -139,7 +139,7 @@ TEST_F(MySQLDBTest, DB_TEST) {
delete dummyDB; delete dummyDB;
}; };
TEST_F(MySQLDBTest, SEARCH_TEST) { TEST_F(DISABLED_MySQLDBTest, SEARCH_TEST) {
auto options = GetOptions(); auto options = GetOptions();
auto db_ = engine::DBFactory::Build(options); auto db_ = engine::DBFactory::Build(options);
...@@ -202,7 +202,7 @@ TEST_F(MySQLDBTest, SEARCH_TEST) { ...@@ -202,7 +202,7 @@ TEST_F(MySQLDBTest, SEARCH_TEST) {
// TODO(linxj): add groundTruth assert // TODO(linxj): add groundTruth assert
}; };
TEST_F(MySQLDBTest, ARHIVE_DISK_CHECK) { TEST_F(DISABLED_MySQLDBTest, ARHIVE_DISK_CHECK) {
auto options = GetOptions(); auto options = GetOptions();
options.meta.archive_conf = engine::ArchiveConf("delete", "disk:1"); options.meta.archive_conf = engine::ArchiveConf("delete", "disk:1");
...@@ -258,7 +258,7 @@ TEST_F(MySQLDBTest, ARHIVE_DISK_CHECK) { ...@@ -258,7 +258,7 @@ TEST_F(MySQLDBTest, ARHIVE_DISK_CHECK) {
delete dummyDB; delete dummyDB;
}; };
TEST_F(MySQLDBTest, DELETE_TEST) { TEST_F(DISABLED_MySQLDBTest, DELETE_TEST) {
auto options = GetOptions(); auto options = GetOptions();
options.meta.archive_conf = engine::ArchiveConf("delete", "disk:1"); options.meta.archive_conf = engine::ArchiveConf("delete", "disk:1");
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
using namespace zilliz::milvus::engine; using namespace zilliz::milvus::engine;
TEST_F(MySQLTest, TABLE_TEST) { TEST_F(DISABLED_MySQLTest, TABLE_TEST) {
DBMetaOptions options; DBMetaOptions options;
try { try {
options = getDBMetaOptions(); options = getDBMetaOptions();
...@@ -63,7 +63,7 @@ TEST_F(MySQLTest, TABLE_TEST) { ...@@ -63,7 +63,7 @@ TEST_F(MySQLTest, TABLE_TEST) {
ASSERT_TRUE(status.ok()); ASSERT_TRUE(status.ok());
} }
TEST_F(MySQLTest, TABLE_FILE_TEST) { TEST_F(DISABLED_MySQLTest, TABLE_FILE_TEST) {
DBMetaOptions options; DBMetaOptions options;
try { try {
options = getDBMetaOptions(); options = getDBMetaOptions();
...@@ -136,7 +136,7 @@ TEST_F(MySQLTest, TABLE_FILE_TEST) { ...@@ -136,7 +136,7 @@ TEST_F(MySQLTest, TABLE_FILE_TEST) {
ASSERT_TRUE(status.ok()); ASSERT_TRUE(status.ok());
} }
TEST_F(MySQLTest, ARCHIVE_TEST_DAYS) { TEST_F(DISABLED_MySQLTest, ARCHIVE_TEST_DAYS) {
srand(time(0)); srand(time(0));
DBMetaOptions options; DBMetaOptions options;
try { try {
...@@ -198,7 +198,7 @@ TEST_F(MySQLTest, ARCHIVE_TEST_DAYS) { ...@@ -198,7 +198,7 @@ TEST_F(MySQLTest, ARCHIVE_TEST_DAYS) {
ASSERT_TRUE(status.ok()); ASSERT_TRUE(status.ok());
} }
TEST_F(MySQLTest, ARCHIVE_TEST_DISK) { TEST_F(DISABLED_MySQLTest, ARCHIVE_TEST_DISK) {
DBMetaOptions options; DBMetaOptions options;
try { try {
options = getDBMetaOptions(); options = getDBMetaOptions();
...@@ -252,7 +252,7 @@ TEST_F(MySQLTest, ARCHIVE_TEST_DISK) { ...@@ -252,7 +252,7 @@ TEST_F(MySQLTest, ARCHIVE_TEST_DISK) {
ASSERT_TRUE(status.ok()); ASSERT_TRUE(status.ok());
} }
TEST_F(MySQLTest, TABLE_FILES_TEST) { TEST_F(DISABLED_MySQLTest, TABLE_FILES_TEST) {
DBMetaOptions options; DBMetaOptions options;
try { try {
options = getDBMetaOptions(); options = getDBMetaOptions();
......
...@@ -85,7 +85,7 @@ void MetaTest::TearDown() { ...@@ -85,7 +85,7 @@ void MetaTest::TearDown() {
impl_->DropAll(); impl_->DropAll();
} }
zilliz::milvus::engine::DBMetaOptions MySQLTest::getDBMetaOptions() { zilliz::milvus::engine::DBMetaOptions DISABLED_MySQLTest::getDBMetaOptions() {
// std::string path = "/tmp/milvus_test"; // std::string path = "/tmp/milvus_test";
// engine::DBMetaOptions options = engine::DBMetaOptionsFactory::Build(path); // engine::DBMetaOptions options = engine::DBMetaOptionsFactory::Build(path);
zilliz::milvus::engine::DBMetaOptions options; zilliz::milvus::engine::DBMetaOptions options;
...@@ -99,7 +99,7 @@ zilliz::milvus::engine::DBMetaOptions MySQLTest::getDBMetaOptions() { ...@@ -99,7 +99,7 @@ zilliz::milvus::engine::DBMetaOptions MySQLTest::getDBMetaOptions() {
return options; return options;
} }
zilliz::milvus::engine::Options MySQLDBTest::GetOptions() { zilliz::milvus::engine::Options DISABLED_MySQLDBTest::GetOptions() {
auto options = engine::OptionsFactory::Build(); auto options = engine::OptionsFactory::Build();
options.meta.path = "/tmp/milvus_test"; options.meta.path = "/tmp/milvus_test";
options.meta.backend_uri = DBTestEnvironment::getURI(); options.meta.backend_uri = DBTestEnvironment::getURI();
......
...@@ -77,13 +77,13 @@ class MetaTest : public DBTest { ...@@ -77,13 +77,13 @@ class MetaTest : public DBTest {
virtual void TearDown() override; virtual void TearDown() override;
}; };
class MySQLTest : public ::testing::Test { class DISABLED_MySQLTest : public ::testing::Test {
protected: protected:
// std::shared_ptr<zilliz::milvus::engine::meta::MySQLMetaImpl> impl_; // std::shared_ptr<zilliz::milvus::engine::meta::MySQLMetaImpl> impl_;
zilliz::milvus::engine::DBMetaOptions getDBMetaOptions(); zilliz::milvus::engine::DBMetaOptions getDBMetaOptions();
}; };
class MySQLDBTest : public ::testing::Test { class DISABLED_MySQLDBTest : public ::testing::Test {
protected: protected:
zilliz::milvus::engine::Options GetOptions(); zilliz::milvus::engine::Options GetOptions();
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册