From e854dc24badddba8bf4209bf45dfeddb7e9858ae Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Wed, 12 Apr 2023 09:37:34 -0400 Subject: makefile compatibility tweak --- tests/Makefile.am | 6 +++--- tests/run-debuginfod-find-metadata.sh | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 1ebb3fc6..6daf5669 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -257,9 +257,9 @@ TESTS += run-debuginfod-dlopen.sh \ run-debuginfod-federation-sqlite.sh \ run-debuginfod-federation-link.sh \ run-debuginfod-percent-escape.sh \ - run-debuginfod-x-forwarded-for.sh \ - run-debuginfod-response-headers.sh \ - run-debuginfod-extraction-passive.sh \ + run-debuginfod-x-forwarded-for.sh \ + run-debuginfod-response-headers.sh \ + run-debuginfod-extraction-passive.sh \ run-debuginfod-webapi-concurrency.sh \ run-debuginfod-section.sh \ run-debuginfod-find-metadata.sh diff --git a/tests/run-debuginfod-find-metadata.sh b/tests/run-debuginfod-find-metadata.sh index 9ac396ad..81a5732b 100755 --- a/tests/run-debuginfod-find-metadata.sh +++ b/tests/run-debuginfod-find-metadata.sh @@ -26,6 +26,8 @@ type curl 2>/dev/null || { echo "need curl"; exit 77; } type jq 2>/dev/null || { echo "need jq"; exit 77; } pkg-config json-c libcurl || { echo "one or more libraries are missing (libjson-c, libcurl)"; exit 77; } +debuginfod-find --help 2>&1 | grep metadata || (echo "compiled without metadata support"; exit 77) + DB=${PWD}/.debuginfod_tmp.sqlite export DEBUGINFOD_CACHE_PATH=${PWD}/.client_cache -- cgit v1.2.1