Skip to content
Snippets Groups Projects
Commit 884461d9 authored by Daniel Wielanek's avatar Daniel Wielanek Committed by Administrator
Browse files

[CI] Edit checklibs.sh to catch all HAL libraries

parent f82c9a67
No related branches found
No related tags found
1 merge request!2078Hbt 2025 plus: Update HAL and fix its libraries and headers
Pipeline #33819 passed
...@@ -29,12 +29,15 @@ for lib in $all_libs; do ...@@ -29,12 +29,15 @@ for lib in $all_libs; do
# So \\\\ becomes \\ which becomes \ # So \\\\ becomes \\ which becomes \
# => Seems to still work with mawk (Mike's awk, debian 10) on run2, so ok like this? # => Seems to still work with mawk (Mike's awk, debian 10) on run2, so ok like this?
rootmap_defs_token="\\\\[ lib" rootmap_defs_token="\\\\[ lib"
# if [[ ${rootmap_file} == *"libHal"* ]]; then
# # Commented out for now as lead to missing headers detection in 60% of HAL libraries (9/14)
# rootmap_defs_token="\\\\[ Hal"
# fi
first_class=$(awk -v token="${rootmap_defs_token}" '$0 ~ token ,0' ${rootmap_file} | grep -m1 "${start_token_class}" | tr -d ';') first_class=$(awk -v token="${rootmap_defs_token}" '$0 ~ token ,0' ${rootmap_file} | grep -m1 "${start_token_class}" | tr -d ';')
if [[ "" == ${first_class} && ${rootmap_file} == *"libHal"* ]]; then
rootmap_defs_token="\\\\[ Hal"
first_class=$(awk -v token="${rootmap_defs_token}" '$0 ~ token ,0' ${rootmap_file} | grep -m1 "${start_token_class}" | tr -d ';')
fi
first_class="${first_class##"${start_token_class}"}" first_class="${first_class##"${start_token_class}"}"
if [[ "" == ${first_class} ]]; then
echo "WARNING: No 1st class found in rootmap for ${lib} (prob. need tuning of checklibs.sh)"
fi
# Printouts commented out to limit spam in test logs # Printouts commented out to limit spam in test logs
# FIXME: make it a "-v" option # FIXME: make it a "-v" option
...@@ -43,7 +46,6 @@ for lib in $all_libs; do ...@@ -43,7 +46,6 @@ for lib in $all_libs; do
# echo "Loading the library ${lib}" # echo "Loading the library ${lib}"
fi fi
root -l -q -b "${SCRIPTDIR}/loadlib.C(\"${lib}\", \"${first_class}\")" &> ${tmpfile} root -l -q -b "${SCRIPTDIR}/loadlib.C(\"${lib}\", \"${first_class}\")" &> ${tmpfile}
retval=$? retval=$?
if [[ retval -ne 0 ]]; then if [[ retval -ne 0 ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment