diff --git a/roottest/root/meta/ROOT-7181/.rootrc b/roottest/root/meta/ROOT-7181/.rootrc deleted file mode 100644 index 84c31bb3db13d..0000000000000 --- a/roottest/root/meta/ROOT-7181/.rootrc +++ /dev/null @@ -1,2 +0,0 @@ -Rint.History: .root_hist -ACLiC.LinkLibs: 1 diff --git a/roottest/root/meta/ROOT-7181/CMakeLists.txt b/roottest/root/meta/ROOT-7181/CMakeLists.txt index 182629f9610bb..ccff070702635 100644 --- a/roottest/root/meta/ROOT-7181/CMakeLists.txt +++ b/roottest/root/meta/ROOT-7181/CMakeLists.txt @@ -1,8 +1,44 @@ -#------------------------------------------------------------------------------- -# -# Placeholder file to translate the tests to the new CTest system. Meanwhile we -# define a CTest test that calls 'make' in ${CMAKE_CURRENT_SOURCE_DIR} -# -#------------------------------------------------------------------------------- - -ROOTTEST_ADD_OLDTEST() +include_directories(${CMAKE_CURRENT_SOURCE_DIR}/inc) + +ROOTTEST_GENERATE_REFLEX_DICTIONARY(btag + inc/BTagVertex_v1.h + SELECTION inc/btag_selection.xml + FIXTURES_SETUP root-meta-7181-btag-fixture) + +ROOTTEST_GENERATE_REFLEX_DICTIONARY(jet + inc/Jet_v1.h + SELECTION inc/jet_selection.xml + FIXTURES_SETUP root-meta-7181-jet-fixture) + +ROOTTEST_GENERATE_REFLEX_DICTIONARY(sjet + inc/SJet_v1.h + SELECTION inc/sjet_selection.xml + FIXTURES_SETUP root-meta-7181-sjet-fixture) + +macro(ROOT_7181_TEST name use_rmap) + if(${use_rmap} STREQUAL "true") + set(testname rmap-${name}) + else() + set(testname ${name}) + endif() + + ROOTTEST_ADD_TEST(${testname} + MACRO runscript.C + MACROARG "\"${name}\",${use_rmap}" + ROOTEXE_OPTS -e "gInterpreter->AddIncludePath(\"-I${CMAKE_CURRENT_SOURCE_DIR}\")" + -e "gInterpreter->AddIncludePath(\"-I${CMAKE_CURRENT_SOURCE_DIR}/inc\")" + OUTREF ${testname}.ref + FIXTURES_REQUIRED root-meta-7181-btag-fixture + root-meta-7181-jet-fixture + root-meta-7181-sjet-fixture) +endmacro(ROOT_7181_TEST) + +ROOT_7181_TEST(case1 false) +ROOT_7181_TEST(case2 false) +ROOT_7181_TEST(case3 false) +ROOT_7181_TEST(case4 false) + +ROOT_7181_TEST(case1 true) +ROOT_7181_TEST(case2 true) +ROOT_7181_TEST(case3 true) +ROOT_7181_TEST(case4 true) diff --git a/roottest/root/meta/ROOT-7181/Makefile b/roottest/root/meta/ROOT-7181/Makefile deleted file mode 100644 index ba736d68ad8df..0000000000000 --- a/roottest/root/meta/ROOT-7181/Makefile +++ /dev/null @@ -1,57 +0,0 @@ -ALL_CASES = case1 case2 case3 case4 -ALL_ROOTMAP_CASES = $(addprefix rmap-,$(ALL_CASES)) - -CLEAN_TARGETS += *.log dummy* *pcm *o *rflx.* $(ALL_LIBRARIES) \ - obj/* lib/* -TEST_TARGETS += execLoadLibs $(ALL_CASES) $(ALL_ROOTMAP_CASES) - -ifeq ($(strip $(ROOTTEST_HOME)),) - export ROOTTEST_HOME := $(shell git rev-parse --show-toplevel)/roottest/ - ifeq ($(strip $(ROOTTEST_HOME)),) - export ROOTTEST_HOME := $(shell expr $(CURDIR) : '\(.*/roottest/\)') - endif - ifeq ($(strip $(ROOTTEST_HOME)),) - $(error The head of roottest was not found. Set ROOTTEST_HOME) - endif -endif - -include $(ROOTTEST_HOME)/scripts/Rules.mk -include $(ROOTTEST_HOME)/scripts/Reflex.mk - -obj/jet_dict.cxx: inc/jet_selection.xml inc/Jet_v1.h inc/DataVector.h - $(CMDECHO) mkdir -p obj lib && genreflex inc/Jet_v1.h --output obj/jet_dict.cxx -l lib/libjet.so -s inc/jet_selection.xml --rootmap lib/libjet.rootmap -Iinc - -obj/sjet_dict.cxx: inc/sjet_selection.xml inc/SJet_v1.h inc/DataVector.h - $(CMDECHO) mkdir -p obj lib && genreflex inc/SJet_v1.h --output obj/sjet_dict.cxx -l lib/libsjet.so -s inc/sjet_selection.xml --rootmap lib/libsjet.rootmap -Iinc - -obj/btag_dict.cxx: inc/btag_selection.xml inc/BTagVertex_v1.h inc/DataVector.h - $(CMDECHO) mkdir -p obj lib && genreflex inc/BTagVertex_v1.h --output obj/btag_dict.cxx -l lib/libbtag.so -s inc/btag_selection.xml --rootmap lib/libbtag.rootmap -Iinc - - -lib/libjet.$(DllSuf): obj/jet_dict.$(ObjSuf) - $(BuildFromObj) - -lib/libsjet.$(DllSuf): obj/sjet_dict.$(ObjSuf) - $(BuildFromObj) - -lib/libbtag.$(DllSuf): obj/btag_dict.$(ObjSuf) - $(BuildFromObj) - -$(ALL_CASES) : %: %.success -$(ALL_ROOTMAP_CASES) : %: %.success - -ALL_CASES_LOG = $(addsuffix .log,$(ALL_CASES)) -ALL_ROOTMAP_CASES_LOG = $(addsuffix .log,$(ALL_ROOTMAP_CASES)) - -$(addsuffix .success,$(ALL_CASES) $(ALL_ROOTMAP_CASES)) : %.success: %.log %.ref - $(SuccessTestDiff) && touch $@ - - -$(ALL_CASES_LOG): %.log: scripts/%.script lib/libjet.$(DllSuf) lib/libbtag.$(DllSuf) lib/libsjet.$(DllSuf) $(UTILS_PREREQ) $(ROOTCORELIBS) $(ROOTCINT) $(ROOTV) - $(CMDECHO) $(CALLROOTEXE) -l -b < $< > $@ 2>&1 || handleError.sh --cmd='Execution of $<' --result=$$? --log=$@ --test=$* - -$(ALL_ROOTMAP_CASES_LOG): rmap-%.log: scripts/%.script lib/libjet.$(DllSuf) lib/libbtag.$(DllSuf) lib/libsjet.$(DllSuf) $(UTILS_PREREQ) $(ROOTCORELIBS) $(ROOTCINT) $(ROOTV) - $(CMDECHO) $(CALLROOTEXE) -l -b scripts/loadrootmap.C < $< > $@ 2>&1 || handleError.sh --cmd='Execution of $<' --result=$$? --log=$@ --test=$* - - - diff --git a/roottest/root/meta/ROOT-7181/case1.ref b/roottest/root/meta/ROOT-7181/case1.ref index 254b61f0be9df..4de6c68a33935 100644 --- a/roottest/root/meta/ROOT-7181/case1.ref +++ b/roottest/root/meta/ROOT-7181/case1.ref @@ -1,2 +1,3 @@ +Processing runscript.C("scripts/case1.script",false)... Classinfo for DataVector is valid diff --git a/roottest/root/meta/ROOT-7181/case2.ref b/roottest/root/meta/ROOT-7181/case2.ref index 0d0b2a7145ad4..45b99f628043f 100644 --- a/roottest/root/meta/ROOT-7181/case2.ref +++ b/roottest/root/meta/ROOT-7181/case2.ref @@ -1,2 +1,3 @@ +Processing runscript.C("scripts/case2.script",false)... Classinfo for SDataVector is valid diff --git a/roottest/root/meta/ROOT-7181/case3.ref b/roottest/root/meta/ROOT-7181/case3.ref index f72e441106768..695377fa0dfb3 100644 --- a/roottest/root/meta/ROOT-7181/case3.ref +++ b/roottest/root/meta/ROOT-7181/case3.ref @@ -1,2 +1,3 @@ +Processing runscript.C("scripts/case3.script",false)... TClass for DataVector is loaded diff --git a/roottest/root/meta/ROOT-7181/case4.ref b/roottest/root/meta/ROOT-7181/case4.ref index 995ac8e45c649..e944d63a16135 100644 --- a/roottest/root/meta/ROOT-7181/case4.ref +++ b/roottest/root/meta/ROOT-7181/case4.ref @@ -1,2 +1,3 @@ +Processing runscript.C("scripts/case4.script",false)... Normalized name for DataVector is : DataVector > diff --git a/roottest/root/meta/ROOT-7181/inc/BTagVertex_v1.h b/roottest/root/meta/ROOT-7181/inc/BTagVertex_v1.h index 60a061c2678f8..94ab4704b5663 100644 --- a/roottest/root/meta/ROOT-7181/inc/BTagVertex_v1.h +++ b/roottest/root/meta/ROOT-7181/inc/BTagVertex_v1.h @@ -20,19 +20,4 @@ namespace xAOD { typedef DataVector BTaggingContainer_v1; } -#if 0 -template <> struct DataVectorBase -{ - typedef DataVector Base; - int fBtag; -}; - -template <> struct DataVectorBase -{ - typedef DataVector Base; - int fBtagging; -}; - -#endif - #endif diff --git a/roottest/root/meta/ROOT-7181/inc/jet_selection.xml b/roottest/root/meta/ROOT-7181/inc/jet_selection.xml index 82e592d55f937..0e23a3c127eb4 100644 --- a/roottest/root/meta/ROOT-7181/inc/jet_selection.xml +++ b/roottest/root/meta/ROOT-7181/inc/jet_selection.xml @@ -27,6 +27,11 @@ + + + + +