Merge branch 'rename_test' into 'branch-0.5.0'

MS-565 rename test->unittest and fix parameter autotune bug

See merge request megasearch/milvus!643

Former-commit-id: 36d9ea3c25f1cf080cd63f70eccb352ec0f6bc3f
pull/191/head
jinhai 2019-09-29 10:15:26 +08:00
commit 56cc4ea530
18 changed files with 8 additions and 8 deletions

View File

@ -95,7 +95,7 @@ endif()
set(CORE_INCLUDE_DIRS ${CORE_INCLUDE_DIRS} PARENT_SCOPE)
if(BUILD_UNIT_TEST STREQUAL "ON")
add_subdirectory(test)
add_subdirectory(unittest)
endif()
config_summary()

View File

@ -30,7 +30,7 @@ set(util_srcs
${CORE_SOURCE_DIR}/knowhere/knowhere/adapter/ArrowAdapter.cpp
${CORE_SOURCE_DIR}/knowhere/knowhere/common/Exception.cpp
${CORE_SOURCE_DIR}/knowhere/knowhere/common/Timer.cpp
${CORE_SOURCE_DIR}/test/utils.cpp
${CORE_SOURCE_DIR}/unittest/utils.cpp
)
#<IVF-TEST>

View File

@ -23,7 +23,7 @@
#include "knowhere/index/vector_index/IndexIDMAP.h"
#include "knowhere/index/vector_index/helpers/Cloner.h"
#include "test/utils.h"
#include "unittest/utils.h"
namespace {

View File

@ -35,7 +35,7 @@
#include "knowhere/index/vector_index/IndexIVFSQ.h"
#include "knowhere/index/vector_index/helpers/Cloner.h"
#include "test/utils.h"
#include "unittest/utils.h"
namespace {

View File

@ -26,7 +26,7 @@
#include "knowhere/index/vector_index/IndexKDT.h"
#include "knowhere/index/vector_index/helpers/Definitions.h"
#include "test/utils.h"
#include "unittest/utils.h"
namespace {

View File

@ -24,7 +24,7 @@
#include "knowhere/index/vector_index/helpers/FaissGpuResourceMgr.h"
#include "knowhere/index/vector_index/nsg/NSGIO.h"
#include "test/utils.h"
#include "unittest/utils.h"
namespace {

View File

@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#include "test/utils.h"
#include "unittest/utils.h"
#include <memory>
#include <string>

View File

@ -81,7 +81,7 @@ IVFConfAdapter::MatchNlist(const int64_t& size, const int64_t& nlist) {
// calculate a proper nlist if nlist not specified or size less than TYPICAL_COUNT
return int(size / TYPICAL_COUNT * 16384);
}
return 0;
return nlist;
}
knowhere::Config