From cae7a4cd7a4817678720bb2529db5a7f159044ac Mon Sep 17 00:00:00 2001 From: Juan Miguel Carceller <22276694+jmcarcell@users.noreply.github.com> Date: Wed, 13 Sep 2023 09:05:26 +0200 Subject: [PATCH] Rename unittests to unittests_edm4hep (#226) --- test/utils/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/utils/CMakeLists.txt b/test/utils/CMakeLists.txt index f665ba5df..3080eb6ef 100644 --- a/test/utils/CMakeLists.txt +++ b/test/utils/CMakeLists.txt @@ -15,9 +15,9 @@ endif() include(Catch) -add_executable(unittests +add_executable(unittests_edm4hep test_kinematics.cpp test_vector_utils.cpp) -target_link_libraries(unittests edm4hep EDM4HEP::utils Catch2::Catch2 Catch2::Catch2WithMain) +target_link_libraries(unittests_edm4hep edm4hep EDM4HEP::utils Catch2::Catch2 Catch2::Catch2WithMain) option(SKIP_CATCH_DISCOVERY "Skip the Catch2 test discovery" OFF) @@ -33,7 +33,7 @@ if (SKIP_CATCH_DISCOVERY) # Unfortunately Memory sanitizer seems to be really unhappy with Catch2 and # it fails to succesfully launch the executable and execute any test. Here # we just include them in order to have them show up as failing - add_test(NAME unittests COMMAND unittests) + add_test(NAME unittests COMMAND unittests_edm4hep) set_property(TEST unittests PROPERTY ENVIRONMENT LD_LIBRARY_PATH=$:$:$:$ENV{LD_LIBRARY_PATH} @@ -41,7 +41,7 @@ if (SKIP_CATCH_DISCOVERY) ROOT_INCLUDE_PATH=${PROJECT_SOURCE_DIR}/edm4hep:${PROJECT_SOURCE_DIR}/utils/include:$ENV{ROOT_INCLUDE_PATH} ) else() - catch_discover_tests(unittests) + catch_discover_tests(unittests_edm4hep) endif() add_test(NAME pyunittests COMMAND python -m unittest discover -s ${CMAKE_CURRENT_LIST_DIR})