From 9af7aaf9d99c508341ddd7c764a6576b1d0bb9b8 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Sun, 13 Jan 2019 23:14:35 +0100 Subject: [PATCH] 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 --- tests/ChangeLog | 4 ++++ tests/run-readelf-compressed.sh | 5 +++++ 2 files changed, 9 insertions(+) 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 -- 2.47.2