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 read tests to ensure backwards compatibility (key4hep#358)
* Add backwards compatibility tests using downloaded files * Add basic version checks to reading files * Run pytest with more output * Update test files to the tagged versions * Avoid polluting the test output to make them fail The gaudi_fixtures that have been introduced with v39 include the full python file otherwise, which matches the FAIL_REGULAR_EXPRESSION and makes the test fail even though they are actually passing
- Loading branch information
Showing
7 changed files
with
60 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
ExternalData_Add_Test(backward_compat_tests | ||
NAME backwards_compat_v00-99 COMMAND pytest -v --inputfile=DATA{${CMAKE_CURRENT_SOURCE_DIR}/input_files/edm4hep_example_v00-99-01_podio_v01-01.root}) | ||
set_test_env(backwards_compat_v00-99) | ||
|
||
ExternalData_Add_Test(backward_compat_tests | ||
NAME backwards_compat_rntuple_v00-99 COMMAND pytest -v --inputfile=DATA{${CMAKE_CURRENT_SOURCE_DIR}/input_files/edm4hep_example_rntuple_v00-99-01_podio_v01-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 | ||
) |
1 change: 1 addition & 0 deletions
1
test/backwards_compat/input_files/edm4hep_example_rntuple_v00-99-01_podio_v01-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 @@ | ||
a725377f2bb515f7d91b953b7a1fc964 |
1 change: 1 addition & 0 deletions
1
test/backwards_compat/input_files/edm4hep_example_v00-99-01_podio_v01-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 @@ | ||
bd4006fb7a56fa765ede88c2920eb351 |
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,2 +1,2 @@ | ||
[pytest] | ||
addopts = --ignore=test_rdf.py --ignore=tools --ignore=utils | ||
addopts = --ignore=test_rdf.py --ignore=tools --ignore=utils -p no:gaudi_fixtures |
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