Skip to content

Commit

Permalink
Remove the macro and script to download files
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Oct 30, 2023
1 parent 544c062 commit 421c05e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 47 deletions.
24 changes: 0 additions & 24 deletions cmake/podioTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,3 @@ function(CREATE_PODIO_TEST sourcefile additional_libs)
target_link_libraries(${name} PRIVATE TestDataModel ExtensionDataModel ${additional_libs})
PODIO_SET_TEST_ENV(${name})
endfunction()

#--- utility macro to facilitate the downloading of legacy input data
macro(PODIO_DOWNLOAD_LEGACY_INPUTS legacy_versions)
# Avoid fetching these everytime cmake is run by caching the directory the first
# time the inputs are fetched or if the expected file does not exist in the
# expected directory
if (NOT DEFINED CACHE{PODIO_TEST_INPUT_DATA_DIR} OR NOT EXISTS ${PODIO_TEST_INPUT_DATA_DIR}/v00-16-05/example_frame.root)
message(STATUS "Getting test input files")
execute_process(
COMMAND bash ${PROJECT_SOURCE_DIR}/tests/scripts/get_test_inputs.sh ${legacy_versions}
OUTPUT_VARIABLE podio_test_input_data_dir
RESULT_VARIABLE test_inputs_available
)
if (NOT "${test_inputs_available}" STREQUAL "0")
message(WARNING "Could not get test input files. Will skip some tests that depend on these")
# Catch cases where the variable is cached but the file no longer exists
unset(PODIO_TEST_INPUT_DATA_DIR CACHE)
else()
message(STATUS "Test inputs stored in: " ${podio_test_input_data_dir})
set(PODIO_TEST_INPUT_DATA_DIR ${podio_test_input_data_dir} CACHE INTERNAL "input dir for test inputs fetched from remote sources")
mark_as_advanced(PODIO_TEST_INPUT_DATA_DIR)
endif()
endif()
endmacro()
23 changes: 0 additions & 23 deletions tests/scripts/get_test_inputs.sh

This file was deleted.

0 comments on commit 421c05e

Please sign in to comment.