]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests: run-debuginfod-seekable.sh depends on LZMA and DEBUGINFOD
authorMark Wielaard <mark@klomp.org>
Tue, 22 Oct 2024 11:48:22 +0000 (13:48 +0200)
committerMark Wielaard <mark@klomp.org>
Wed, 23 Oct 2024 22:07:21 +0000 (00:07 +0200)
The run-debuginfod-seekable.sh test would run (and fail) if lzma
support was enabled, but debuginfod wasn't build. Only run it when
both are available.

     * tests/Makefile.am (TESTS): Add run-debuginfod-seekable.sh if
     DEBUGINFOD and LZMA.

Signed-off-by: Mark Wielaard <mark@klomp.org>
tests/Makefile.am

index 76f1682fa95299fb4b0d03590629fe489f94fd19..6dc255a9b4d0136482c3dafcbeea83956a8b350c 100644 (file)
@@ -228,7 +228,7 @@ export ELFUTILS_DISABLE_DEMANGLE = 1
 endif
 
 if LZMA
-TESTS += run-readelf-s.sh run-dwflsyms.sh run-debuginfod-seekable.sh
+TESTS += run-readelf-s.sh run-dwflsyms.sh
 endif
 
 if HAVE_ZSTD
@@ -277,6 +277,9 @@ TESTS += run-srcfiles-self.sh \
         run-debuginfod-client-profile.sh \
         run-debuginfod-find-metadata.sh \
         run-debuginfod-longsource.sh
+if LZMA
+TESTS += run-debuginfod-seekable.sh
+endif
 endif
 if !OLD_LIBMICROHTTPD
 # Will crash on too old libmicrohttpd