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