[Pkg-gnupg-commit] [gnupg2] 03/112: tests: Check for gpgtar.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Tue Aug 30 17:48:12 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit 12a887050a560c4cacaf95e4cdb0cc42d8b87aa1
Author: Justus Winter <justus at g10code.com>
Date: Fri Jul 15 11:59:57 2016 +0200
tests: Check for gpgtar.
* tests/migrations/extended-pkf.scm: Skip test if gpgtar is not built.
* tests/migrations/from-classic.scm: Likewise.
* tests/openpgp/gpgtar.scm: Fix check for gpgtar.
Signed-off-by: Justus Winter <justus at g10code.com>
---
tests/migrations/extended-pkf.scm | 3 +++
tests/migrations/from-classic.scm | 3 +++
tests/openpgp/gpgtar.scm | 4 ++--
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/tests/migrations/extended-pkf.scm b/tests/migrations/extended-pkf.scm
index 3e76532..bf2c49e 100755
--- a/tests/migrations/extended-pkf.scm
+++ b/tests/migrations/extended-pkf.scm
@@ -19,6 +19,9 @@
(load (with-path "common.scm"))
+(catch (skip "gpgtar not built")
+ (call-check `(,GPGTAR --help)))
+
(define src-tarball (in-srcdir "extended-pkf.tar.asc"))
(define (setup)
diff --git a/tests/migrations/from-classic.scm b/tests/migrations/from-classic.scm
index 2128532..d540470 100755
--- a/tests/migrations/from-classic.scm
+++ b/tests/migrations/from-classic.scm
@@ -19,6 +19,9 @@
(load (with-path "common.scm"))
+(catch (skip "gpgtar not built")
+ (call-check `(,GPGTAR --help)))
+
(define src-tarball (in-srcdir "from-classic.tar.asc"))
(define (setup)
diff --git a/tests/openpgp/gpgtar.scm b/tests/openpgp/gpgtar.scm
index 07f2fd7..15f528f 100755
--- a/tests/openpgp/gpgtar.scm
+++ b/tests/openpgp/gpgtar.scm
@@ -19,8 +19,8 @@
(load (with-path "defs.scm"))
-(unless (= 0 (call `(,(tool 'gpgtar) --help)))
- (skip "gpgtar not installed"))
+(catch (skip "gpgtar not built")
+ (call-check `(,(tool 'gpgtar) --help)))
(define testfiles (append plain-files data-files))
(define gpgargs
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list