summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2016-03-03 12:22:30 +0100
committerJustus Winter <justus@g10code.com>2016-03-03 12:24:24 +0100
commita883d4c0f8125e809c144ec69e76c9f522102d8f (patch)
treec462f67118321b9fe1c4af0da34d16ea9772fc7a
parentgpg: Add new program gpgcompose. (diff)
downloadgnupg2-a883d4c0f8125e809c144ec69e76c9f522102d8f.tar.xz
gnupg2-a883d4c0f8125e809c144ec69e76c9f522102d8f.zip
tests/openpgp: Skip gpgtar test if it has not been built.
* tests/openpgp/gpgtar.test: Check if executable exists. GnuPG-bug-id: 2261 Signed-off-by: Justus Winter <justus@g10code.com>
-rwxr-xr-xtests/openpgp/gpgtar.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/openpgp/gpgtar.test b/tests/openpgp/gpgtar.test
index d92eeb1d5..daba514fe 100755
--- a/tests/openpgp/gpgtar.test
+++ b/tests/openpgp/gpgtar.test
@@ -33,6 +33,12 @@ GPGARGS="$opt_always --no-permission-warning"
GPGTAR="../../tools/gpgtar"
GPGZIP="sh ../../tools/gpg-zip"
+# Skip test if gpgtar has not been built.
+if ! test -x "$GPGTAR"
+then
+ exit 77
+fi
+
# Create, inspect, and extract an archive with the given options.
#
# $1 the tool to test