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>
This commit is contained in:
Justus Winter 2016-03-03 12:22:30 +01:00
parent d040628ddf
commit a883d4c0f8
1 changed files with 6 additions and 0 deletions

View File

@ -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