summaryrefslogtreecommitdiffstats
path: root/tests/openpgp/armdetach.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/openpgp/armdetach.test')
-rwxr-xr-xtests/openpgp/armdetach.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/openpgp/armdetach.test b/tests/openpgp/armdetach.test
new file mode 100755
index 000000000..c445d6ce6
--- /dev/null
+++ b/tests/openpgp/armdetach.test
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+. $srcdir/defs.inc || exit 3
+
+
+#info Checking armored detached signatures
+for i in $plain_files $data_files ; do
+ echo "$usrpass1" | $GPG --passphrase-fd 0 -sab -o x --yes $i
+ $GPG -o /dev/null --yes x <$i || error "$i: bad signature"
+done
+