This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
[PATCH] Skip run-readelf-compressed.sh test if built without bzip2
- From: Ulf Hermann <ulf dot hermann at qt dot io>
- To: "elfutils-devel at sourceware dot org" <elfutils-devel at sourceware dot org>
- Date: Wed, 9 Jan 2019 13:30:19 +0000
- Subject: [PATCH] Skip run-readelf-compressed.sh test if built without bzip2
- Accept-language: en-US
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Obviously, we cannot read the compressed ELF file if no bzip2 support is
present.
Signed-off-by: Ulf Hermann <ulf.hermann@qt.io>
---
tests/run-readelf-compressed.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/run-readelf-compressed.sh
b/tests/run-readelf-compressed.sh
index a2a04a2a..861553fe 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.11.0