From a883d4c0f8125e809c144ec69e76c9f522102d8f Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 3 Mar 2016 12:22:30 +0100 Subject: [PATCH] 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 --- tests/openpgp/gpgtar.test | 6 ++++++ 1 file changed, 6 insertions(+) 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