From: Ulf Hermann Date: Sun, 13 Jan 2019 22:14:35 +0000 (+0100) Subject: Skip run-readelf-compressed.sh test if built without bzip2 X-Git-Tag: elfutils-0.176~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9af7aaf9d99c508341ddd7c764a6576b1d0bb9b8;p=thirdparty%2Felfutils.git Skip run-readelf-compressed.sh test if built without bzip2 Obviously, we cannot read the compressed ELF file if no bzip2 support is present. Signed-off-by: Ulf Hermann --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 71b24e098..8c9e78078 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2019-01-09 Ulf Hermann + + * run-readelf-compressed.sh: Skip if USE_BZIP2 not found. + 2018-12-27 Jim Wilson * run-readelf-mixed-corenote.sh: Update with new riscv64 output. diff --git a/tests/run-readelf-compressed.sh b/tests/run-readelf-compressed.sh index a2a04a2a2..861553fe5 100755 --- a/tests/run-readelf-compressed.sh +++ b/tests/run-readelf-compressed.sh @@ -17,6 +17,11 @@ . $srcdir/test-subr.sh +if ! grep -q -F '#define USE_BZLIB' ${abs_top_builddir}/config.h; then + echo "elfutils built without bzip2 support" + exit 77 +fi + # See run-strip-reloc.sh testfiles hello_i386.ko