aboutsummaryrefslogtreecommitdiffstats
path: root/checks/armencryptp.test
diff options
context:
space:
mode:
Diffstat (limited to 'checks/armencryptp.test')
-rwxr-xr-xchecks/armencryptp.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/checks/armencryptp.test b/checks/armencryptp.test
new file mode 100755
index 000000000..a67e3c7e4
--- /dev/null
+++ b/checks/armencryptp.test
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+. defs.inc || exit 3
+
+#info Checking armored encryption with a pipe
+for i in $plain_files $data_files ; do
+ run_gpg -ea --yes -r "$usrname2" < $i | tee x | run_gpg -o y --yes
+ cmp $i y || error "$i: mismatch"
+ run_gpg --yes < x > y
+ cmp $i y || error "$i: mismatch"
+done
+