Skip to content

Commit

Permalink
Add backwards compatibility tests using downloaded files
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Sep 18, 2024
1 parent 3be00a7 commit 6162a88
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ find_package(nlohmann_json 3.10.5)

add_subdirectory(edm4hep)
add_subdirectory(utils)
add_subdirectory(test)
add_subdirectory(tools)
add_subdirectory(python)
add_subdirectory(test)

#--- create uninstall target ---------------------------------------------------
include(cmake/EDM4HEPUninstall.cmake)
10 changes: 10 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,13 @@ set_property(TEST py_test_module APPEND PROPERTY ENVIRONMENT

add_subdirectory(utils)
add_subdirectory(tools)


include(ExternalData)
list(APPEND ExternalData_URL_TEMPLATES
"https://key4hep.web.cern.ch:443/testFiles/EDM4hep/%(hash)"
)

add_subdirectory(backwards_compat)

ExternalData_Add_Target(backward_compat_tests)
15 changes: 15 additions & 0 deletions test/backwards_compat/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ExternalData_Add_Test(backward_compat_tests
NAME backwards_compat_v00-99 COMMAND pytest --inputfile=DATA{${CMAKE_CURRENT_SOURCE_DIR}/input_files/edm4hep_example_v00-99_podio_v01-00-01.root})
set_test_env(backwards_compat_v00-99)

ExternalData_Add_Test(backward_compat_tests
NAME backwards_compat_rntuple_v00-99 COMMAND pytest --inputfile=DATA{${CMAKE_CURRENT_SOURCE_DIR}/input_files/edm4hep_example_rntuple_v00-99_podio_v01-00-01.root})
set_test_env(backwards_compat_rntuple_v00-99)

set_tests_properties(
backwards_compat_v00-99
backwards_compat_rntuple_v00-99

PROPERTIES
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/test
)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6f3e8c366c7014c2220acd94e2cd4558
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
215f4db666f696e5f9ad010cc1001b05

0 comments on commit 6162a88

Please sign in to comment.