]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests: run-debuginfod-query-retry.sh /bin/sh might not have a build-id
authorMark Wielaard <mark@klomp.org>
Thu, 19 Jan 2023 22:53:33 +0000 (23:53 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 19 Jan 2023 22:53:33 +0000 (23:53 +0100)
If /bin/sh wasn't build with build-id the test fails because
debuginfod-find will not be able to even try to fetch something.
Use libdebuginfod.so.1 instead as test file because we just
build that and configure makes sure we always produce a build-id.

Signed-off-by: Mark Wielaard <mark@klomp.org>
tests/ChangeLog
tests/run-debuginfod-query-retry.sh

index 8c841fa1037d80a50325a631f598888bc7e239ce..668078563f9010c420269a488d913064f8e9e37d 100644 (file)
@@ -1,3 +1,8 @@
+2023-01-19  Mark Wielaard  <mark@klomp.org>
+
+       * run-debuginfod-query-retry.sh: Use libdebuginfod.so.1 instead
+       of /bin/sh as test file.
+
 2022-12-21  Shahab Vahedi  <shahab@synopsys.email>
 
        * hello_arc_hs4.ko.bz2: New testfile.
index 0cfdba92d5e38053abd3b2f30dcab67fa7672d5e..2f551ffbf1f3e585d7d51e6e0dd48386bd8f9ce8 100755 (executable)
@@ -25,8 +25,9 @@ unset VALGRIND_CMD
 ########################################################################
 # set up tests for retrying failed queries.
 retry_attempts=`(testrun env DEBUGINFOD_URLS=http://255.255.255.255/JUNKJUNK DEBUGINFOD_RETRY_LIMIT=10 DEBUGINFOD_VERBOSE=1 DEBUGINFOD_CACHE_PATH=${PWD}/.client_cache \
-        ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo /bin/sh || true) 2>&1 >/dev/null \
-        | grep -c 'Retry failed query'`
+    ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo \
+    ${abs_top_builddir}/debuginfod/libdebuginfod.so.1 || true) \
+    2>&1 >/dev/null | grep -c 'Retry failed query'`
 if [ $retry_attempts -ne 10 ]; then
     echo "retry mechanism failed."
     exit 1;