Skip to content

Commit

Permalink
Fix test environment for Ubuntu CI
Browse files Browse the repository at this point in the history
Otherwise might pick up podio from LCG which seems to deadlock
  • Loading branch information
tmadlener committed Aug 11, 2022
1 parent 3d30fa1 commit 51cc7c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,20 @@ if (USE_SANITIZER MATCHES "Memory(WithOrigin)?")
# 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 unittest COMMAND unittest ${filter_tests})
set_property(TEST unittest
PROPERTY ENVIRONMENT
LD_LIBRARY_PATH=${CMAKE_CURRENT_BINARY_DIR}:${CMAKE_BINARY_DIR}/src:$<TARGET_FILE_DIR:ROOT::Tree>:$ENV{LD_LIBRARY_PATH}
)
endif()
else()
include(Catch)
catch_discover_tests(unittest
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
TEST_PREFIX "UT_" # make it possible to filter easily with -R ^UT
TEST_SPEC ${filter_tests} # discover only tests that are known to not fail
PROPERTIES
ENVIRONMENT
LD_LIBRARY_PATH=${CMAKE_CURRENT_BINARY_DIR}:${CMAKE_BINARY_DIR}/src:$<TARGET_FILE_DIR:ROOT::Tree>:$ENV{LD_LIBRARY_PATH}
)
endif()

Expand Down

0 comments on commit 51cc7c8

Please sign in to comment.