aboutsummaryrefslogtreecommitdiffstats
path: root/tests/openpgp/encryptp.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/openpgp/encryptp.scm')
-rwxr-xr-xtests/openpgp/encryptp.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/openpgp/encryptp.scm b/tests/openpgp/encryptp.scm
new file mode 100755
index 000000000..2724b22cd
--- /dev/null
+++ b/tests/openpgp/encryptp.scm
@@ -0,0 +1,14 @@
+#!/usr/bin/env gpgscm
+
+(load (with-path "defs.scm"))
+
+(for-each-p
+ "Checking encryption and decryption using pipes"
+ (lambda (source)
+ (tr:do
+ (tr:open source)
+ (tr:pipe-do
+ (pipe:gpg `(--yes --encrypt --recipient ,usrname2))
+ (pipe:gpg '(--yes)))
+ (tr:assert-identity source)))
+ (append plain-files data-files))