[git] GnuPG - branch, master, updated. gnupg-2.1.20-9-g9464531
by Justus Winter
cvs at cvs.gnupg.org
Thu Apr 6 12:36:06 CEST 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".
The branch, master has been updated
via 94645311f8a3e9ae33643512f87fbef41bf0556f (commit)
from 01e84d429aeeb1450012ff0576a6a24de50693c6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 94645311f8a3e9ae33643512f87fbef41bf0556f
Author: Justus Winter <justus at g10code.com>
Date: Thu Apr 6 12:33:37 2017 +0200
tests: Make test more robust.
* tests/openpgp/4gb-packet.scm: Skip if we do not have BZIP2.
* tests/openpgp/defs.scm (have-compression-algo?): New function.
GnuPG-bug-id: 3028
Signed-off-by: Justus Winter <justus at g10code.com>
diff --git a/tests/openpgp/4gb-packet.scm b/tests/openpgp/4gb-packet.scm
index b827181..109e61d 100755
--- a/tests/openpgp/4gb-packet.scm
+++ b/tests/openpgp/4gb-packet.scm
@@ -23,6 +23,7 @@
(load (with-path "defs.scm"))
(setup-environment)
-(if (= 0 (call `(, at GPG --list-packets ,(in-srcdir "4gb-packet.asc"))))
- (info "Can parse 4GB packets.")
- (fail "Failed to parse 4GB packet."))
+(unless (have-compression-algo? "BZIP2")
+ (skip "BZIP2 support not compiled in."))
+
+(call-check `(, at GPG --list-packets ,(in-srcdir "4gb-packet.asc")))
diff --git a/tests/openpgp/defs.scm b/tests/openpgp/defs.scm
index 815a560..29eb775 100644
--- a/tests/openpgp/defs.scm
+++ b/tests/openpgp/defs.scm
@@ -258,6 +258,8 @@
(not (not (member x (force all-hash-algos)))))
(define (have-cipher-algo? x)
(not (not (member x (force all-cipher-algos)))))
+(define (have-compression-algo? x)
+ (not (not (member x (force all-compression-algos)))))
(define (gpg-pipe args0 args1 errfd)
(lambda (source sink)
-----------------------------------------------------------------------
Summary of changes:
tests/openpgp/4gb-packet.scm | 7 ++++---
tests/openpgp/defs.scm | 2 ++
2 files changed, 6 insertions(+), 3 deletions(-)
hooks/post-receive
--
The GNU Privacy Guard
http://git.gnupg.org
More information about the Gnupg-commits
mailing list