summaryrefslogtreecommitdiff
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 0000000..aab4167
--- /dev/null
+++ b/checks/decrypt.test
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+. $srcdir/defs.inc || exit 3
+
+#info Checking decryption of supplied files
+for i in $plain_files ; do
+ echo "$usrpass1" | $GPG --passphrase-fd 0 -o y --yes $srcdir/$i.asc
+ cmp $i y || error "$i: mismatch"
+done
+