Skip to content

Commit

Permalink
Use PROJECT_BINARY_DIR instead of CMAKE_BINARY_DIR to always locate t…
Browse files Browse the repository at this point in the history
…he test files. (#368)
  • Loading branch information
jmcarcell authored Sep 16, 2024
1 parent 6d785eb commit 189f162
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ set_tests_properties(create_complete_file_rntuple PROPERTIES
SKIP_REGULAR_EXPRESSION "The RNTuple writer from podio is not available but was requested"
)

add_test(NAME check_complete_file COMMAND pytest --inputfile=${CMAKE_BINARY_DIR}/test/edm4hep_example.root -v)
add_test(NAME check_complete_file COMMAND pytest --inputfile=${PROJECT_BINARY_DIR}/test/edm4hep_example.root -v)
set_test_env(check_complete_file)
set_tests_properties(
check_complete_file
PROPERTIES
DEPENDS create_complete_file
)
add_test(NAME check_complete_file_rntuple COMMAND pytest --inputfile=${CMAKE_BINARY_DIR}/test/edm4hep_example_rntuple.root -v)
add_test(NAME check_complete_file_rntuple COMMAND pytest --inputfile=${PROJECT_BINARY_DIR}/test/edm4hep_example_rntuple.root -v)
set_test_env(check_complete_file_rntuple)
set_tests_properties(
check_complete_file_rntuple
Expand Down

0 comments on commit 189f162

Please sign in to comment.