Skip to content

Commit

Permalink
Only run StorageTests when USE_PODIO=1
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwbrei committed Sep 19, 2024
1 parent c93938a commit c94ac6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/programs/unit_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ set(TEST_SOURCES
Components/ExactlyOnceTests.cc
Components/GetObjectsTests.cc
Components/NEventNSkipTests.cc
Components/JStorageTests.cc
Components/JComponentTests.cc
Components/JEventGetAllTests.cc
Components/JEventProcessorTests.cc
Expand Down Expand Up @@ -45,7 +44,7 @@ set(TEST_SOURCES
)

if (${USE_PODIO})
list(APPEND TEST_SOURCES Components/PodioTests.cc)
list(APPEND TEST_SOURCES Components/PodioTests.cc Components/JStorageTests.cc)
endif()

add_jana_test(jana-unit-tests SOURCES ${TEST_SOURCES})
Expand Down
3 changes: 2 additions & 1 deletion src/programs/unit_tests/Components/JStorageTests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
#include <JANA/JFactory.h>
#include <JANA/JFactoryGenerator.h>
#include <JANA/Services/JComponentManager.h>
#include <memory>

#include <JANA/Components/JPodioOutput.h>
#include <PodioDatamodel/ExampleClusterCollection.h>
#include <memory>

namespace jstorage_tests {

Expand Down

0 comments on commit c94ac6f

Please sign in to comment.