-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[math] migrate old Makefiles to CMake and reenable non-covered tests #21890
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
base: master
Are you sure you want to change the base?
Changes from 9 commits
c2460c4
2644907
984910c
ed0a9f4
4229684
19a816c
fe7101c
4823286
5ce524b
08946a8
06a8aea
ac1f8ee
77b3f6c
47fa95c
5fd8c35
8507223
aab8283
6db032a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,3 +57,5 @@ ROOT_GENERATE_DICTIONARY(G__Smatrix32 | |
| Core | ||
| MathCore | ||
| ) | ||
|
|
||
| ROOT_ADD_TEST_SUBDIRECTORY(test) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| # Copyright (C) 1995-2026, Rene Brun and Fons Rademakers. | ||
| # All rights reserved. | ||
| # | ||
| # For the licensing terms see $ROOTSYS/LICENSE. | ||
| # For the list of contributors see $ROOTSYS/README/CREDITS. | ||
|
|
||
| # @author Danilo Piparo CERN | ||
|
|
||
| project(smatrix-tests) | ||
|
|
||
| set(Libraries Core RIO Tree Rint Matrix MathCore Hist) | ||
|
|
||
| set(TestSource | ||
| testSMatrix.cxx | ||
| testOperations.cxx | ||
| testKalman.cxx | ||
| testIO.cxx | ||
| testInversion.cxx | ||
| stressOperations.cxx | ||
| stressKalman.cxx) | ||
|
|
||
|
|
||
| ROOT_GENERATE_DICTIONARY(TrackDict Track.h LINKDEF TrackLinkDef.h OPTIONS -inlineInputHeader) | ||
|
|
||
| #---Build and add all the defined test in the list--------------- | ||
| foreach(file ${TestSource}) | ||
| get_filename_component(testname ${file} NAME_WE) | ||
| if (testname STREQUAL "testIO") | ||
| ROOT_EXECUTABLE(${testname} ${file} TrackDict.cxx LIBRARIES ${Libraries}) | ||
| else() | ||
| ROOT_EXECUTABLE(${testname} ${file} LIBRARIES ${Libraries}) | ||
| endif() | ||
| target_include_directories(${testname} PRIVATE ./) | ||
| if (CLHEPBASE) | ||
|
ferdymercury marked this conversation as resolved.
Outdated
|
||
| target_include_directories(${testname} PRIVATE ${CLHEPBASE}) | ||
| target_compile_definitions(${testname} PRIVATE HAVE_CLHEP) | ||
| if (WIN32) | ||
| target_link_libraries(${testname} PRIVATE "${CLHEPBASE}/lib/CLHEP.lib") | ||
| else() | ||
| target_link_libraries(${testname} PRIVATE "CLHEP" "m") | ||
| target_link_directories(${testname} PRIVATE "${CLHEPBASE}/lib") | ||
| endif() | ||
| endif() | ||
|
linev marked this conversation as resolved.
Outdated
|
||
| ROOT_ADD_TEST(smatrix-${testname} COMMAND ${testname} LABELS ${${testname}_LABELS}) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are two ROOT files in the directory which were generated by the tests.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you mean checking that the result generated by the test is compatible with that reference? they get recreated at every run. so i guess that reference was done on an old SLC3 and gcc3
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, we can extend |
||
| endforeach() | ||
Uh oh!
There was an error while loading. Please reload this page.