Skip to content

Commit 8aa5be0

Browse files
authored
Add a cmake option to toggle schema evolution tests with code generation (#902)
* Add cmake option to toggle code gen for schema evolution tests * Turn new option on for CI * Turn option ON by default
1 parent 8ba73b6 commit 8aa5be0

File tree

7 files changed

+11
-2
lines changed

7 files changed

+11
-2
lines changed

.github/workflows/edm4hep.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
-DUSE_EXTERNAL_CATCH2=ON \
6262
-DBUILD_TESTING=ON \
6363
-DPODIO_RUN_STRACE_TEST=ON \
64+
-DPODIO_ENABLE_SCHEMA_EVOLUTION_TESTS=ON \
6465
-G Ninja ..
6566
ninja -k0
6667
echo "::endgroup::"

.github/workflows/key4hep.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
-DENABLE_DATASOURCE=ON \
5252
-DPODIO_SET_RPATH=ON \
5353
-DPODIO_RUN_STRACE_TEST=ON \
54+
-DPODIO_ENABLE_SCHEMA_EVOLUTION_TESTS=ON \
5455
-G Ninja ..
5556
echo "::endgroup::"
5657
echo "::group::Build"

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
-DCMAKE_CXX_STANDARD=20 \
3535
-DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always -Werror "\
3636
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
37+
-DPODIO_ENABLE_SCHEMA_EVOLUTION_TESTS=ON \
3738
-DUSE_EXTERNAL_CATCH2=OFF
3839
ln -s $(pwd)/compile_commands.json ../
3940
cd ..

.github/workflows/sanitizers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
-DENABLE_JULIA=OFF \
5353
-DENABLE_RNTUPLE=ON \
5454
-DENABLE_DATASOURCE=ON \
55-
-DPODIO_NO_MEMLIMIT_SCHEMA_EVOL_TESTS=ON \
55+
-DPODIO_ENABLE_SCHEMA_EVOLUTION_TESTS=ON \
5656
-G Ninja ..
5757
echo "::endgroup::"
5858
echo "::group::Build"

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
-DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always -Werror -Wno-error=deprecated-declarations " \
4848
-DUSE_EXTERNAL_CATCH2=AUTO \
4949
-DPODIO_USE_CLANG_FORMAT=AUTO \
50+
-DPODIO_ENABLE_SCHEMA_EVOLUTION_TESTS=ON \
5051
-G Ninja ..
5152
echo "::endgroup::"
5253
echo "::group::Build"

.github/workflows/ubuntu.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
-DPODIO_SET_RPATH=ON \
4444
-DPODIO_RUN_STRACE_TEST=ON \
4545
-DENABLE_RNTUPLE=ON \
46+
-DPODIO_ENABLE_SCHEMA_EVOLUTION_TESTS=ON \
4647
-G Ninja ..
4748
echo "::endgroup::"
4849
echo "::group::Build"
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
option(PODIO_ENABLE_SCHEMA_EVOLUTION_TESTS "Enable the building and running of schema evolution related tests" ON)
2+
13
add_subdirectory(detection)
2-
add_subdirectory(code_gen)
4+
if (PODIO_ENABLE_SCHEMA_EVOLUTION_TESTS)
5+
add_subdirectory(code_gen)
6+
endif()

0 commit comments

Comments
 (0)