From 209127c1851ee590fcb70d31e0974392c3f36d8e Mon Sep 17 00:00:00 2001 From: zhiru Date: Sat, 7 Sep 2019 12:09:57 +0800 Subject: [PATCH] Install core unit test Former-commit-id: ca5af63829888fe86df6daf45ad3223f84da8e9f --- cpp/CHANGELOG.md | 1 + cpp/src/core/test/CMakeLists.txt | 4 ++++ cpp/src/core/test/faiss_ori/CMakeLists.txt | 2 ++ cpp/src/core/test/test_nsg/CMakeLists.txt | 4 +++- 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/cpp/CHANGELOG.md b/cpp/CHANGELOG.md index 8d61f970..01e065ed 100644 --- a/cpp/CHANGELOG.md +++ b/cpp/CHANGELOG.md @@ -92,6 +92,7 @@ Please mark all change in change log and use the ticket from JIRA. - MS-487 - Define metric type in CreateTable - MS-488 - Improve code format in scheduler - MS-495 - cmake: integrated knowhere +- MS-505 - Install core unit test ## New Feature - MS-343 - Implement ResourceMgr diff --git a/cpp/src/core/test/CMakeLists.txt b/cpp/src/core/test/CMakeLists.txt index ba3f0d65..ba150108 100644 --- a/cpp/src/core/test/CMakeLists.txt +++ b/cpp/src/core/test/CMakeLists.txt @@ -74,6 +74,10 @@ target_link_libraries(test_kdt SPTAGLibStatic ${depend_libs} ${unittest_libs} ${basic_libs}) +install(TARGETS test_ivf DESTINATION unittest) +install(TARGETS test_idmap DESTINATION unittest) +install(TARGETS test_kdt DESTINATION unittest) + add_subdirectory(faiss_ori) add_subdirectory(test_nsg) diff --git a/cpp/src/core/test/faiss_ori/CMakeLists.txt b/cpp/src/core/test/faiss_ori/CMakeLists.txt index 2f46d25d..6cd490af 100644 --- a/cpp/src/core/test/faiss_ori/CMakeLists.txt +++ b/cpp/src/core/test/faiss_ori/CMakeLists.txt @@ -24,3 +24,5 @@ if(NOT TARGET test_gpu) add_executable(test_gpu gpuresource_test.cpp) endif() target_link_libraries(test_gpu ${depend_libs} ${unittest_libs} ${basic_libs}) + +install(TARGETS test_gpu DESTINATION unittest) \ No newline at end of file diff --git a/cpp/src/core/test/test_nsg/CMakeLists.txt b/cpp/src/core/test/test_nsg/CMakeLists.txt index 642c1a3d..9ee8e765 100644 --- a/cpp/src/core/test/test_nsg/CMakeLists.txt +++ b/cpp/src/core/test/test_nsg/CMakeLists.txt @@ -38,4 +38,6 @@ if(NOT TARGET test_nsg) endif() target_link_libraries(test_nsg ${depend_libs} ${unittest_libs} ${basic_libs}) -############################## \ No newline at end of file +############################## + +install(TARGETS test_nsg DESTINATION unittest) \ No newline at end of file -- GitLab