[git] GnuPG - branch, master, updated. gnupg-2.1.16-51-gfae4d06

by Justus Winter cvs at cvs.gnupg.org
Mon Dec 5 10:45:09 CET 2016


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  fae4d06b0ccaa9803e0c0da56c327b0bcfffcac5 (commit)
      from  ef10c348bffc7dad19e1832bebc453755d209420 (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 fae4d06b0ccaa9803e0c0da56c327b0bcfffcac5
Author: Justus Winter <justus at g10code.com>
Date:   Mon Dec 5 10:37:31 2016 +0100

    tests: New test for '--enarmor' and '--dearmor'.
    
    * tests/openpgp/Makefile.am (XTESTS): Add new test.
    * tests/openpgp/enarmor.scm: New file.
    
    Signed-off-by: Justus Winter <justus at g10code.com>

diff --git a/tests/openpgp/Makefile.am b/tests/openpgp/Makefile.am
index 49db18e..350b60a 100644
--- a/tests/openpgp/Makefile.am
+++ b/tests/openpgp/Makefile.am
@@ -45,6 +45,7 @@ TESTS_ENVIRONMENT = LC_ALL=C \
 
 XTESTS = \
 	version.scm \
+	enarmor.scm \
 	mds.scm \
 	decrypt.scm \
 	decrypt-multifile.scm \
diff --git a/tests/openpgp/enarmor.scm b/tests/openpgp/enarmor.scm
new file mode 100755
index 0000000..a301ccd
--- /dev/null
+++ b/tests/openpgp/enarmor.scm
@@ -0,0 +1,31 @@
+#!/usr/bin/env gpgscm
+
+;; Copyright (C) 2016 g10 Code GmbH
+;;
+;; This file is part of GnuPG.
+;;
+;; GnuPG is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation; either version 3 of the License, or
+;; (at your option) any later version.
+;;
+;; GnuPG is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;; GNU General Public License for more details.
+;;
+;; You should have received a copy of the GNU General Public License
+;; along with this program; if not, see <http://www.gnu.org/licenses/>.
+
+(load (with-path "defs.scm"))
+(setup-legacy-environment)
+
+(for-each-p
+ "Checking armor encoding and decoding"
+ (lambda (source)
+   (tr:do
+    (tr:open source)
+    (tr:gpg "" `(--enarmor))
+    (tr:gpg "" '(--dearmor))
+    (tr:assert-identity source)))
+ (append plain-files data-files))

-----------------------------------------------------------------------

Summary of changes:
 tests/openpgp/Makefile.am                     | 1 +
 tests/openpgp/{armencrypt.scm => enarmor.scm} | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)
 copy tests/openpgp/{armencrypt.scm => enarmor.scm} (87%)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list