2020-08-27 10:08:42 +08:00
|
|
|
enable_testing()
|
2020-09-15 10:00:00 +08:00
|
|
|
|
|
|
|
include_directories(${CMAKE_HOME_DIRECTORY}/src)
|
2020-10-27 15:51:16 +08:00
|
|
|
include_directories(${CMAKE_HOME_DIRECTORY}/src/index/knowhere)
|
2020-08-27 10:08:42 +08:00
|
|
|
set(MILVUS_TEST_FILES
|
2020-09-15 10:00:00 +08:00
|
|
|
test_naive.cpp
|
2020-10-31 15:11:47 +08:00
|
|
|
test_segcore.cpp
|
2020-09-15 10:00:00 +08:00
|
|
|
test_concurrent_vector.cpp
|
|
|
|
test_c_api.cpp
|
|
|
|
test_indexing.cpp
|
2020-11-03 11:45:48 +08:00
|
|
|
test_query.cpp
|
2020-11-16 10:55:49 +08:00
|
|
|
test_expr.cpp
|
2020-11-30 22:14:19 +08:00
|
|
|
test_bitmap.cpp
|
|
|
|
test_binary.cpp
|
2020-12-25 11:10:31 +08:00
|
|
|
test_index_wrapper.cpp
|
2021-01-13 18:46:25 +08:00
|
|
|
test_common.cpp
|
2020-12-29 11:56:37 +08:00
|
|
|
test_sealed.cpp
|
2021-01-06 14:45:50 +08:00
|
|
|
test_reduce.cpp
|
2021-01-13 18:46:25 +08:00
|
|
|
test_interface.cpp
|
2021-01-15 14:38:36 +08:00
|
|
|
test_span.cpp
|
2021-01-16 15:06:19 +08:00
|
|
|
test_load.cpp
|
2020-11-30 22:14:19 +08:00
|
|
|
)
|
2020-09-15 10:00:00 +08:00
|
|
|
add_executable(all_tests
|
|
|
|
${MILVUS_TEST_FILES}
|
|
|
|
)
|
2020-08-27 10:08:42 +08:00
|
|
|
|
2021-02-20 10:14:03 +08:00
|
|
|
set(INDEX_BUILDER_TEST_FILES
|
|
|
|
test_index_wrapper.cpp)
|
|
|
|
add_executable(index_builder_test
|
|
|
|
${INDEX_BUILDER_TEST_FILES}
|
|
|
|
)
|
|
|
|
target_link_libraries(index_builder_test
|
|
|
|
gtest
|
|
|
|
gtest_main
|
|
|
|
milvus_segcore
|
|
|
|
milvus_indexbuilder
|
|
|
|
log
|
|
|
|
pthread
|
|
|
|
)
|
|
|
|
|
2020-09-15 10:00:00 +08:00
|
|
|
target_link_libraries(all_tests
|
|
|
|
gtest
|
|
|
|
gtest_main
|
2020-10-31 15:11:47 +08:00
|
|
|
milvus_segcore
|
2020-12-25 11:10:31 +08:00
|
|
|
milvus_indexbuilder
|
2020-09-15 10:00:00 +08:00
|
|
|
log
|
|
|
|
pthread
|
2020-10-15 21:31:50 +08:00
|
|
|
)
|
2020-12-09 09:55:56 +08:00
|
|
|
|
2020-10-27 15:51:16 +08:00
|
|
|
install (TARGETS all_tests DESTINATION unittest)
|