From 3192fcf3f96714003cb5cebf81a3018e2c050d09 Mon Sep 17 00:00:00 2001 From: tmadlener Date: Wed, 12 Jun 2024 10:20:29 +0200 Subject: [PATCH] Add tests for running the schema evolution script standalone --- tests/schema_evolution/CMakeLists.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/schema_evolution/CMakeLists.txt b/tests/schema_evolution/CMakeLists.txt index a86963d82..c6eabb388 100644 --- a/tests/schema_evolution/CMakeLists.txt +++ b/tests/schema_evolution/CMakeLists.txt @@ -33,4 +33,20 @@ function(PODIO_CREATE_READ_NEW_DATA_TEST sourcefile additional_libs) ) endfunction() +add_test( + NAME schema-evolution-script + COMMAND ${PROJECT_SOURCE_DIR}/python/podio_schema_evolution.py + ${CMAKE_CURRENT_SOURCE_DIR}/datalayout_new.yaml + ${PROJECT_SOURCE_DIR}/tests/datalayout.yaml +) + +add_test( + NAME schema-evolution-script-with-evol + COMMAND + ${PROJECT_SOURCE_DIR}/python/podio_schema_evolution.py + --evo ${CMAKE_CURRENT_SOURCE_DIR}/schema_evolution.yaml + ${CMAKE_CURRENT_SOURCE_DIR}/datalayout_new.yaml + ${PROJECT_SOURCE_DIR}/tests/datalayout.yaml +) + add_subdirectory(root_io)