-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[roottest] root/tree, part 5 #19526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[roottest] root/tree, part 5 #19526
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
b658579
[roottest] use cmake for tree/evolution/split tests
linev e7fe978
[roottest] support cc and cpp extension for MACRO
linev 16627a2
[roottest] use cmake for root/tree/evolution tests
linev 6a1ff13
[roottest] remove unsed files from root/tree/cloning dir
linev f5e07c4
[roottest] use cmake for root/tree/chain
linev 8992ee9
[roottest] use cmake for root/tree/branches tests
linev dfc038f
[roottest] remove execGetBranch.ref32 file
linev cb417c0
[roottest] disable root-tree-branches-separate test on windows
linev 1665890
[roottest] rename ABC -> BaseABC in tree/branches tests
linev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,116 @@ | ||
| #------------------------------------------------------------------------------- | ||
| # | ||
| # 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(LABELS longtest) | ||
|
|
||
| # New tests follow | ||
|
|
||
| # ROOT-5983 | ||
| ROOTTEST_ADD_TEST(initOffset | ||
| MACRO initOffset.C+) | ||
| MACRO initOffset.C+) | ||
|
|
||
| ROOTTEST_ADD_TEST(abc_rflx | ||
| COMMAND ${ROOT_genreflex_CMD} ${CMAKE_CURRENT_SOURCE_DIR}/abc.h -o abc_rflx.cpp | ||
| FIXTURES_SETUP root-tree-branches-abc-rflx-dict-fixture) | ||
|
|
||
| ROOTTEST_COMPILE_MACRO(abc.h | ||
| FIXTURES_SETUP root-tree-branches-abc-fixture) | ||
|
|
||
| ROOTTEST_GENERATE_REFLEX_DICTIONARY(abc_rflx abc.h | ||
| SELECTION selection.xml | ||
| LIBNAME libabc_rflx | ||
| NO_ROOTMAP | ||
| FIXTURES_SETUP root-tree-branches-libabc_rflx-fixture) | ||
|
|
||
| set(_opts_cint -e "(void)gROOT->ProcessLine(\".L abc.h+\")") | ||
| set(_opts_rflx -e "(void)gSystem->Load(\"libabc_rflx\")") | ||
|
|
||
| ROOTTEST_ADD_TEST(abc-cint-write | ||
| MACRO abcwrite.C | ||
| MACROARG "\"cint\"" | ||
| ROOTEXE_OPTS ${_opts_cint} | ||
| FIXTURES_REQUIRED root-tree-branches-abc-fixture | ||
| FIXTURES_SETUP root-tree-branches-abc-cint-write-fixture) | ||
|
|
||
| ROOTTEST_ADD_TEST(abc-reflex-write | ||
| MACRO abcwrite.C | ||
| MACROARG "\"reflex\"" | ||
| ROOTEXE_OPTS ${_opts_rflx} | ||
| FIXTURES_REQUIRED root-tree-branches-libabc_rflx-fixture | ||
| FIXTURES_SETUP root-tree-branches-abc-reflex-write-fixture) | ||
|
|
||
| ROOTTEST_ADD_TEST(abc-cint-cint-read | ||
| MACRO abcread.C | ||
| MACROARG "\"cint\",\"cint\"" | ||
| ROOTEXE_OPTS ${_opts_cint} | ||
| OUTREF abc.ref | ||
| FIXTURES_REQUIRED root-tree-branches-abc-cint-write-fixture | ||
| root-tree-branches-abc-fixture) | ||
|
|
||
| ROOTTEST_ADD_TEST(abc-cint-reflex-read | ||
| MACRO abcread.C | ||
| MACROARG "\"cint\",\"reflex\"" | ||
| ROOTEXE_OPTS ${_opts_rflx} | ||
| OUTREF abc.ref | ||
| FIXTURES_REQUIRED root-tree-branches-abc-cint-write-fixture | ||
| root-tree-branches-libabc_rflx-fixture) | ||
|
|
||
| ROOTTEST_ADD_TEST(abc-reflex-cint-read | ||
| MACRO abcread.C | ||
| MACROARG "\"reflex\",\"cint\"" | ||
| ROOTEXE_OPTS ${_opts_cint} | ||
| OUTREF abc.ref | ||
| FIXTURES_REQUIRED root-tree-branches-abc-reflex-write-fixture | ||
| root-tree-branches-abc-fixture) | ||
|
|
||
| ROOTTEST_ADD_TEST(abc-reflex-reflex-read | ||
| MACRO abcread.C | ||
| MACROARG "\"reflex\",\"reflex\"" | ||
| ROOTEXE_OPTS ${_opts_rflx} | ||
| OUTREF abc.ref | ||
| FIXTURES_REQUIRED root-tree-branches-abc-reflex-write-fixture | ||
| root-tree-branches-libabc_rflx-fixture) | ||
|
|
||
| ROOTTEST_ADD_TEST(MakeClass | ||
| MACRO assertMakeClass.C | ||
| ERRREF assertMakeClass.ref) | ||
|
|
||
| ROOTTEST_ADD_TEST(bref | ||
| MACRO execbref.C | ||
| OUTREF execbref.ref) | ||
|
|
||
| ROOTTEST_ADD_TEST(DupNames | ||
| MACRO execDupNames.cxx+ | ||
| OUTREF execDupNames.ref) | ||
|
|
||
| ROOTTEST_ADD_TEST(EmptyBase | ||
| MACRO execEmptyBase.cxx+ | ||
| OUTREF execEmptyBase.ref) | ||
|
|
||
| ROOTTEST_ADD_TEST(GetBranch | ||
| MACRO execGetBranch.cxx+ | ||
| OUTREF execGetBranch.ref) | ||
|
|
||
| ROOTTEST_ADD_TEST(LeafFullName | ||
| MACRO execLeafFullName.cxx+ | ||
| OUTREF execLeafFullName.ref) | ||
|
|
||
| ROOTTEST_ADD_TEST(WriteRead | ||
| MACRO execWriteRead.C | ||
| OUTREF execWriteRead.ref) | ||
|
|
||
| ROOTTEST_ADD_TEST(simple | ||
| MACRO runsimple.C+ | ||
| OUTREF simple.ref) | ||
|
|
||
| ROOTTEST_ADD_TEST(i_simple | ||
| MACRO runsimple.C | ||
| OUTREF i_simple.ref) | ||
|
|
||
| ROOTTEST_ADD_TEST(noname | ||
| MACRO runnoname.C | ||
| OUTREF noname.ref) | ||
|
|
||
| # on windows test fails while after reading of treeobj.root file branch.root left open | ||
| if(NOT MSVC OR win_broken_tests) | ||
| ROOTTEST_ADD_TEST(separate | ||
| MACRO runseparate.C | ||
| OUTREF separate.ref) | ||
| endif() | ||
|
|
||
| ROOTTEST_ADD_TEST(updates | ||
| MACRO runupdates.C | ||
| OUTREF updates.ref) | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,27 +1,27 @@ | ||
| class ABC { | ||
| class BaseABC { | ||
| public: | ||
| ABC(int i = -1): abc(i) {} | ||
| virtual ~ABC() {} | ||
| BaseABC(int i = -1): abc(i) {} | ||
| virtual ~BaseABC() {} | ||
| virtual int pv() = 0; | ||
| int abc; | ||
| }; | ||
|
|
||
| class Derived: public ABC { | ||
| class Derived: public BaseABC { | ||
| public: | ||
| ~Derived() override {} | ||
| Derived(int i = -2): ABC(i+1), derived(i) {} | ||
| Derived(int i = -2): BaseABC(i+1), derived(i) {} | ||
|
|
||
| int pv() override { return abc + derived; } | ||
| int derived; | ||
| }; | ||
|
|
||
| class Holder { | ||
| public: | ||
| Holder(): fABC(0) {} | ||
| Holder(): fABC(nullptr) {} | ||
| ~Holder() { delete fABC; } | ||
|
|
||
| void Set(int i) { delete fABC; fABC = new Derived(i); } | ||
|
|
||
| ABC* fABC; | ||
| BaseABC* fABC; | ||
| }; | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.