From 9903deb4976c1d4ee1a351c306c852a60b02f1b1 Mon Sep 17 00:00:00 2001 From: Bingyi Sun Date: Thu, 13 Jul 2023 14:52:05 +0800 Subject: [PATCH] Fix skip cpp ut error (#20) Signed-off-by: sunby --- .github/workflows/cpp-ci.yml | 2 +- cpp/CMakeLists.txt | 1 + cpp/test/CMakeLists.txt | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cpp-ci.yml b/.github/workflows/cpp-ci.yml index 0441b45..59b6e3c 100644 --- a/.github/workflows/cpp-ci.yml +++ b/.github/workflows/cpp-ci.yml @@ -45,7 +45,7 @@ jobs: # key: conan-${{ hashFiles('./cpp/conanfile.py') }} - name : Test - working-directory: ./cpp/build + working-directory: ./cpp/build/Release run: ctest . diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 6c383b9..761e2ee 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -19,5 +19,6 @@ target_include_directories(storage PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src) target_link_libraries(storage PUBLIC arrow::libarrow arrow::libparquet Boost::boost protobuf::protobuf) if (WITH_UT) + enable_testing() add_subdirectory(test) endif() diff --git a/cpp/test/CMakeLists.txt b/cpp/test/CMakeLists.txt index b63a7e2..cd02444 100644 --- a/cpp/test/CMakeLists.txt +++ b/cpp/test/CMakeLists.txt @@ -10,3 +10,6 @@ add_executable( target_link_libraries( milvus_test storage GTest::gtest_main ) + +include(GoogleTest) +gtest_discover_tests(milvus_test)