Skip to content
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

root/io/compression tests make to cmake #774

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 47 additions & 7 deletions root/io/compression/CMakeLists.txt
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)

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()

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)

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)
38 changes: 0 additions & 38 deletions root/io/compression/Makefile

This file was deleted.