From 51ecac17c2d8d69c02e71b7a794ff2e65edae4d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 25 Aug 2021 21:41:15 +0000 Subject: add flag tests let's start with the easy targets from coverage reports --- tests/Makefile.am | 3 ++- tests/basic-flags.sh | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 tests/basic-flags.sh diff --git a/tests/Makefile.am b/tests/Makefile.am index 90fe906..46589ea 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -35,7 +35,8 @@ src_TESTS = \ endianness.sh \ contiguous-note-sections.sh \ no-gnu-hash.sh \ - no-dynamic-section.sh + no-dynamic-section.sh \ + basic-flags.sh build_TESTS = \ $(no_rpath_arch_TESTS) diff --git a/tests/basic-flags.sh b/tests/basic-flags.sh new file mode 100755 index 0000000..998fd04 --- /dev/null +++ b/tests/basic-flags.sh @@ -0,0 +1,6 @@ +#! /bin/sh -e + +set -x +../src/patchelf --version | grep -q patchelf +../src/patchelf --help 2>&1 | grep -q patchelf +../src/patchelf 2>&1 | grep -q patchelf -- cgit v1.2.1