]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Skip run-readelf-compressed.sh test if built without bzip2
authorUlf Hermann <ulf.hermann@qt.io>
Sun, 13 Jan 2019 22:14:35 +0000 (23:14 +0100)
committerMark Wielaard <mark@klomp.org>
Sun, 13 Jan 2019 22:18:06 +0000 (23:18 +0100)
Obviously, we cannot read the compressed ELF file if no bzip2 support is
present.

Signed-off-by: Ulf Hermann <ulf.hermann@qt.io>
tests/ChangeLog
tests/run-readelf-compressed.sh

index 71b24e098b2c443ecb2a8dc8fa14502e2d8c4cdf..8c9e78078c1cad1a80e0c5cfe14bfbbcb5262614 100644 (file)
@@ -1,3 +1,7 @@
+2019-01-09  Ulf Hermann <ulf.hermann@qt.io>
+
+       * run-readelf-compressed.sh: Skip if USE_BZIP2 not found.
+
 2018-12-27  Jim Wilson  <jimw@sifive.com>
 
        * run-readelf-mixed-corenote.sh: Update with new riscv64 output.
index a2a04a2a2da8948a4b9af502ffab8efda85a12c0..861553fe5b9db7304587097a2fb3886e69081d9f 100755 (executable)
 
 . $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