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