-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[roottest] Migrate Make to CMake #18596
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 all commits
9f8a5db
3ce539c
70d2d3e
a00b14e
fc573d5
dc78623
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,47 @@ | ||
#------------------------------------------------------------------------------- | ||
# | ||
# 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() | ||
ROOT_GENERATE_DICTIONARY(G__IoCompressionGeneration | ||
${CMAKE_CURRENT_SOURCE_DIR}/Event.h | ||
LINKDEF ${CMAKE_CURRENT_SOURCE_DIR}/EventLinkDef.h) | ||
|
||
ROOT_LINKER_LIBRARY(IoCompressionGeneration | ||
${CMAKE_CURRENT_SOURCE_DIR}/IoCompressionGeneration.cxx | ||
G__IoCompressionGeneration.cxx | ||
LIBRARIES Core Tree Hist MathCore Physics Graf Matrix) | ||
|
||
Comment on lines
+5
to
+8
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. From root-project/roottest#774 (comment): I recommend adding the |
||
if(MSVC) | ||
add_custom_command(TARGET IoCompressionGeneration POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/libIoCompressionGeneration.dll | ||
${CMAKE_CURRENT_BINARY_DIR}/libIoCompressionGeneration.dll | ||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/libIoCompressionGeneration.lib | ||
${CMAKE_CURRENT_BINARY_DIR}/libIoCompressionGeneration.lib) | ||
endif() | ||
|
||
Comment on lines
+10
to
+16
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. From root-project/roottest#774 (comment): @bellenot Is that an okay solution? 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.
Almost. It should be:
|
||
ROOTTEST_GENERATE_EXECUTABLE(IoCompressionGenerator | ||
${CMAKE_CURRENT_SOURCE_DIR}/IoCompressionGenerator.cxx | ||
LIBRARIES Core RIO Net Tree Hist MathCore IoCompressionGeneration | ||
DEPENDS IoCompressionGeneration | ||
FIXTURES_SETUP io-compression-generator) | ||
Comment on lines
+18
to
+21
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. From root-project/roottest#774 (comment): This actually needs to be a |
||
|
||
set(size 20) | ||
set(opt 1) | ||
|
||
function(IO_COMPRESSION_GENERATION comp action) | ||
ROOTTEST_ADD_TEST("${comp}-${action}" | ||
COMMAND ./IoCompressionGenerator ${size} "${comp}" ${opt} "${action}" | ||
FIXTURES_REQUIRED io-compression-generator | ||
RESOURCE_LOCK io-compression-file) | ||
endfunction() | ||
|
||
IO_COMPRESSION_GENERATION(0 1) | ||
IO_COMPRESSION_GENERATION(0 20) | ||
IO_COMPRESSION_GENERATION(5 1) | ||
IO_COMPRESSION_GENERATION(5 20) | ||
IO_COMPRESSION_GENERATION(101 1) | ||
IO_COMPRESSION_GENERATION(101 20) | ||
IO_COMPRESSION_GENERATION(208 1) | ||
IO_COMPRESSION_GENERATION(208 20) | ||
IO_COMPRESSION_GENERATION(301 1) | ||
IO_COMPRESSION_GENERATION(301 20) | ||
IO_COMPRESSION_GENERATION(404 1) | ||
IO_COMPRESSION_GENERATION(404 20) | ||
IO_COMPRESSION_GENERATION(505 1) | ||
IO_COMPRESSION_GENERATION(505 20) |
This file was deleted.
This file was deleted.
This file was deleted.
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. We should also consider this previous discussion on |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
#------------------------------------------------------------------------------- | ||
# | ||
# 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() | ||
ROOTTEST_ADD_TEST(julius | ||
COMMAND ${ROOT_root_CMD} -q -l -b "${CMAKE_CURRENT_SOURCE_DIR}/julius.C+" | ||
) |
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From root-project/roottest#726 (comment):
Please remove this only as the very last step. It is still used(/useable) to clean all the by-product of the 'make' runs that are executed by ctest.