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