diff options
Diffstat (limited to 'tests/openpgp/decrypt.test')
-rwxr-xr-x | tests/openpgp/decrypt.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/openpgp/decrypt.test b/tests/openpgp/decrypt.test new file mode 100755 index 000000000..aab416750 --- /dev/null +++ b/tests/openpgp/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 + |