aboutsummaryrefslogtreecommitdiffstats
path: root/checks/decrypt.test
diff options
context:
space:
mode:
Diffstat (limited to 'checks/decrypt.test')
-rwxr-xr-xchecks/decrypt.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/checks/decrypt.test b/checks/decrypt.test
new file mode 100755
index 000000000..e45a0ad6f
--- /dev/null
+++ b/checks/decrypt.test
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+. defs.inc || exit 3
+
+#info Checking decryption of supplied files
+for i in $plain_files ; do
+ echo "$usrpass1" | run_gpg --passphrase-fd 0 -o y --yes $i.asc
+ cmp $i y || error "$i: mismatch"
+done
+