forked from key4hep/EDM4hep
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add backwards compatibility tests using downloaded files
- Loading branch information
Showing
5 changed files
with
28 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,28 @@ | ||
add_test(NAME check_complete_file COMMAND pytest --inputfile=${CMAKE_BINARY_DIR}/test/edm4hep_example.root -v) | ||
set_test_env(check_complete_file) | ||
set_tests_properties( | ||
check_complete_file | ||
|
||
PROPERTIES | ||
DEPENDS create_complete_file | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
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) | ||
set_test_env(check_complete_file_rntuple) | ||
set_tests_properties(check_complete_file_rntuple | ||
PROPERTIES DEPENDS create_complete_file_rntuple | ||
) | ||
|
||
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( | ||
check_complete_file | ||
check_complete_file_rntuple | ||
backwards_compat_v00-99 | ||
backwards_compat_rntuple_v00-99 | ||
|
||
PROPERTIES | ||
DEPENDS create_complete_file_rntuple | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
) |
1 change: 1 addition & 0 deletions
1
test/backwards_compat/input_files/edm4hep_example_rntuple_v00-99_podio_v01-00-01.root.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
6f3e8c366c7014c2220acd94e2cd4558 |
1 change: 1 addition & 0 deletions
1
test/backwards_compat/input_files/edm4hep_example_v00-99_podio_v01-00-01.root.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
215f4db666f696e5f9ad010cc1001b05 |