Skip to content

Commit

Permalink
[wip] Add debug output for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Oct 12, 2023
1 parent 7db06bc commit 7a64fb0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmake/podioTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ macro(PODIO_DOWNLOAD_LEGACY_INPUTS legacy_versions)
OUTPUT_VARIABLE podio_test_input_data_dir
RESULT_VARIABLE test_inputs_available
)
message(STATUS ${podio_test_input_data_dir})
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
Expand Down
6 changes: 5 additions & 1 deletion tests/scripts/get_test_inputs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ for version in $@; do
cd ${PODIO_TEST_INPUT_DATA_DIR}
mkdir ${version} && cd ${version}
for fileName in example.root example_frame.root example.sio example_frame.sio; do
wget https://key4hep.web.cern.ch:443/testFiles/podio/${version}/${fileName} > /dev/null 2>&1
echo "Fetching "${fileName}" for version "${version}
if ! wget https://key4hep.web.cern.ch:443/testFiles/podio/${version}/${fileName} > /dev/null 2>&1; then
echo "Could not get file "${fileName}" for version "${version}
exit 1
fi
done
done

Expand Down

0 comments on commit 7a64fb0

Please sign in to comment.