diff --git a/roottest/root/ntuple/.rootrc b/roottest/root/ntuple/.rootrc deleted file mode 100644 index 6ebe75fd4ec5a..0000000000000 --- a/roottest/root/ntuple/.rootrc +++ /dev/null @@ -1 +0,0 @@ -Rint.History: .root_hist diff --git a/roottest/root/ntuple/makeproject/rntuple/CMakeLists.txt b/roottest/root/ntuple/makeproject/rntuple/CMakeLists.txt index a25c8d5446b35..6350493a69afc 100644 --- a/roottest/root/ntuple/makeproject/rntuple/CMakeLists.txt +++ b/roottest/root/ntuple/makeproject/rntuple/CMakeLists.txt @@ -1,7 +1,3 @@ -if(NOT ROOT_root7_FOUND) - return() -endif() - # Generate common dictionary for custom class ROOTTEST_GENERATE_DICTIONARY( rntuple_event_dict @@ -15,16 +11,11 @@ ROOTTEST_GENERATE_DICTIONARY( # Write the RNTuple with the custom class field ROOTTEST_GENERATE_EXECUTABLE( write_rntuple + write_rntuple.cxx rntuple_event_dict.cxx LIBRARIES Core RIO ROOTNTuple FIXTURES_REQUIRED generated_event_dictionary_rntuple FIXTURES_SETUP write_rntuple_executable) -# Specify more than one input source for the generated executable -target_sources( - write_rntuple - PRIVATE write_rntuple.cxx rntuple_event_dict.cxx -) - ROOTTEST_ADD_TEST(write_rntuple EXEC ./write_rntuple FIXTURES_REQUIRED write_rntuple_executable diff --git a/roottest/root/ntuple/makeproject/ttree/CMakeLists.txt b/roottest/root/ntuple/makeproject/ttree/CMakeLists.txt index 5b3915132ab36..afe03634fd858 100644 --- a/roottest/root/ntuple/makeproject/ttree/CMakeLists.txt +++ b/roottest/root/ntuple/makeproject/ttree/CMakeLists.txt @@ -12,19 +12,15 @@ ROOTTEST_GENERATE_DICTIONARY( # Write the TTree with the custom class branch ROOTTEST_GENERATE_EXECUTABLE( write_ttree + write_ttree.cxx ttree_event_dict.cxx LIBRARIES Core RIO Tree FIXTURES_REQUIRED generated_event_dictionary_ttree FIXTURES_SETUP write_ttree_executable) -# Specify more than one input source for the generated executable -target_sources( - write_ttree - PRIVATE write_ttree.cxx ttree_event_dict.cxx -) ROOTTEST_ADD_TEST(write_ttree EXEC ./write_ttree FIXTURES_REQUIRED write_ttree_executable - FIXTURES_SETUP written_ttree) + FIXTURES_SETUP makeproject_written_ttree) # Call MakeProject on the output file ROOTTEST_GENERATE_EXECUTABLE( @@ -35,7 +31,7 @@ ROOTTEST_GENERATE_EXECUTABLE( ROOTTEST_ADD_TEST(makeproject_ttree EXEC ./makeproject_ttree - FIXTURES_REQUIRED "written_ttree;makeproject_ttree" + FIXTURES_REQUIRED makeproject_written_ttree makeproject_ttree FIXTURES_SETUP makeproject_ttree_called) # Read back the class instance thanks to the shared library generated by MakeProject. @@ -51,7 +47,7 @@ ROOTTEST_GENERATE_EXECUTABLE( read_ttree.cxx LIBRARIES ${ROOT_LIBRARIES} GTest::gtest GTest::gtest_main GTest::gmock GTest::gmock_main ${TTREESTLTESTLIB} FIXTURES_REQUIRED makeproject_ttree_called - FIXTURES_SETUP read_ttree_executable + FIXTURES_SETUP makeproject_read_ttree_executable ) target_include_directories(read_ttree PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) target_link_directories(read_ttree PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/libttreestltest) @@ -67,7 +63,7 @@ set(_roottest_env_librarypath ${ROOTTEST_ENV_LIBRARYPATH}) set(ROOTTEST_ENV_LIBRARYPATH "${ROOTTEST_ENV_LIBRARYPATH}:${CMAKE_CURRENT_BINARY_DIR}/libttreestltest") ROOTTEST_ADD_TEST(read_ttree EXEC ./read_ttree - FIXTURES_REQUIRED read_ttree_executable - # PATH is used on Windows to find libraries for loading - ENVIRONMENT PATH=${CMAKE_CURRENT_BINARY_DIR}/libttreestltest) + FIXTURES_REQUIRED makeproject_read_ttree_executable + # PATH is used on Windows to find libraries for loading + ENVIRONMENT PATH=${CMAKE_CURRENT_BINARY_DIR}/libttreestltest) set(ROOTTEST_ENV_LIBRARYPATH ${_roottest_env_librarypath}) diff --git a/roottest/root/ntuple/streamerfield/CMakeLists.txt b/roottest/root/ntuple/streamerfield/CMakeLists.txt index b23c0f47b844d..73b0347571f5f 100644 --- a/roottest/root/ntuple/streamerfield/CMakeLists.txt +++ b/roottest/root/ntuple/streamerfield/CMakeLists.txt @@ -8,19 +8,15 @@ ROOTTEST_GENERATE_DICTIONARY( ROOTTEST_GENERATE_EXECUTABLE( write_event + write_event.cxx event_v2_dict.cxx LIBRARIES Core RIO ROOTNTuple FIXTURES_REQUIRED generated_event_v2_dictionary - FIXTURES_SETUP write_event_excutable) - -target_sources( - write_event - PRIVATE write_event.cxx event_v2_dict.cxx -) + FIXTURES_SETUP streamerfield_write_event_excutable) ROOTTEST_ADD_TEST(write_event EXEC ./write_event - FIXTURES_REQUIRED write_event_excutable - FIXTURES_SETUP written_event) + FIXTURES_REQUIRED streamerfield_write_event_excutable + FIXTURES_SETUP streamerfield_written_event) ROOTTEST_GENERATE_DICTIONARY( event_v3_dict @@ -32,15 +28,11 @@ ROOTTEST_GENERATE_DICTIONARY( ROOTTEST_GENERATE_EXECUTABLE( read_event + read_event.cxx event_v3_dict.cxx LIBRARIES Core RIO ROOTNTuple FIXTURES_REQUIRED generated_event_v3_dictionary - FIXTURES_SETUP read_event_executable) - -target_sources( - read_event - PRIVATE read_event.cxx event_v3_dict.cxx -) + FIXTURES_SETUP streamerfield_read_event_executable) ROOTTEST_ADD_TEST(read_event EXEC ./read_event - FIXTURES_REQUIRED read_event_executable written_event) + FIXTURES_REQUIRED streamerfield_read_event_executable streamerfield_written_event) diff --git a/roottest/root/ntuple/test_basics.ref b/roottest/root/ntuple/test_basics.ref index 69eaa1712eaba..a3e882e28a7c9 100644 --- a/roottest/root/ntuple/test_basics.ref +++ b/roottest/root/ntuple/test_basics.ref @@ -1,4 +1,4 @@ -Processing /home/jakob/Documents/CERN/ROOT/roottest/root/ntuple/basics.C... +Processing basics.C... { "E": 137