aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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