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