Skip to content

Commit

Permalink
Make sure that tests also work in Ubuntu environments (#243)
Browse files Browse the repository at this point in the history
* Add ubuntu based workflow to CI

* Run catch test discovery in correct environment
  • Loading branch information
tmadlener authored Dec 6, 2023
1 parent 085d1e7 commit 67bdd9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/lcg_linux_with_podio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
CXX_STANDARD: 17
- LCG: "LCG_104/x86_64-centos8-gcc11-opt"
CXX_STANDARD: 17
- LCG: "dev4/x86_64-ubuntu2004-gcc9-opt"
CXX_STANDARD: 17
steps:
- uses: actions/checkout@v3
- uses: cvmfs-contrib/github-action-cvmfs@v3
Expand Down
5 changes: 4 additions & 1 deletion test/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ 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_edm4hep)
catch_discover_tests(unittests_edm4hep
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
DL_PATHS $<TARGET_FILE_DIR:edm4hep>:$<TARGET_FILE_DIR:podio::podio>:$<TARGET_FILE_DIR:ROOT::Core>:$ENV{LD_LIBRARY_PATH}
)
endif()

add_test(NAME pyunittests COMMAND python -m unittest discover -s ${CMAKE_CURRENT_LIST_DIR})
Expand Down

0 comments on commit 67bdd9a

Please sign in to comment.