Skip to content

Commit

Permalink
Fix test environment and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jun 15, 2023
1 parent 14c2010 commit 50837d8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions python/templates/Collection.cc.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,14 @@ bool registerCollection() {
auto& factory = podio::CollectionBufferFactory::mutInstance();
factory.registerCreationFunc("{{ class.full_type }}Collection", {{ package_name }}::meta::schemaVersion, createBuffers);

podio::SchemaEvolution::mutInstance().registerEvolutionFunc(
"{{ class.full_type }}Collection",
{{ package_name }}::meta::schemaVersion,
{{ package_name }}::meta::schemaVersion,
podio::SchemaEvolution::noOpSchemaEvolution,
podio::SchemaEvolution::Priority::AutoGenerated
);

return true;
}();
return reg;
Expand Down
4 changes: 2 additions & 2 deletions tests/schema_evolution/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ function(PODIO_CREATE_WRITE_OLD_DATA_TEST sourcefile additional_libs)

set_property(TEST ${name}
PROPERTY ENVIRONMENT
LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/src:${CMAKE_CURRENT_BINARY_DIR}:$<TARGET_FILE_DIR:ROOT::Tree>:$<$<TARGET_EXISTS:SIO::sio>:$<TARGET_FILE_DIR:SIO::sio>>:$ENV{LD_LIBRARY_PATH}
LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/src:${CMAKE_BINARY_DIR}/tests/schema_evolution:$<TARGET_FILE_DIR:ROOT::Tree>:$<$<TARGET_EXISTS:SIO::sio>:$<TARGET_FILE_DIR:SIO::sio>>:$ENV{LD_LIBRARY_PATH}
PODIO_SIO_BLOCK=${CMAKE_CURRENT_BINARY_DIR}
ROOT_INCLUDE_PATH=${CMAKE_CURRENT_BINARY_DIR}/datamodel_old:${CMAKE_SOURCE_DIR}/include
ROOT_INCLUDE_PATH=${CMAKE_BINARY_DIR}/tests/schema_evolution/datamodel_old:${CMAKE_SOURCE_DIR}/include
)
endfunction()

Expand Down
2 changes: 1 addition & 1 deletion tests/schema_evolution/write_old_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ podio::Frame createFrame() {
podio::Frame event;

event.put(writeSimpleStruct(), "simpleStructTest");
event.put(writeExampleHit(), "dataTypeMemberAdditionTest");
event.put(writeExampleHit(), "datatypeMemberAdditionTest");

return event;
}
Expand Down

0 comments on commit 50837d8

Please sign in to comment.