summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2021-08-25 21:41:15 +0000
committerJörg Thalheim <joerg@thalheim.io>2021-08-25 21:43:41 +0000
commit51ecac17c2d8d69c02e71b7a794ff2e65edae4d1 (patch)
tree23be1a132caeb3744b1c3bbc341db5f4cd27cf43
parent38cb5c8e0d28ce4ec0eaa44346f489a193a07baf (diff)
downloadpatchelf-51ecac17c2d8d69c02e71b7a794ff2e65edae4d1.tar.gz
add flag tests
let's start with the easy targets from coverage reports
-rw-r--r--tests/Makefile.am3
-rwxr-xr-xtests/basic-flags.sh6
2 files changed, 8 insertions, 1 deletions
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