aboutsummaryrefslogtreecommitdiffstats
path: root/checks/clearsig.test
diff options
context:
space:
mode:
Diffstat (limited to 'checks/clearsig.test')
-rwxr-xr-xchecks/clearsig.test25
1 files changed, 12 insertions, 13 deletions
diff --git a/checks/clearsig.test b/checks/clearsig.test
index 89d323317..b1eb125f2 100755
--- a/checks/clearsig.test
+++ b/checks/clearsig.test
@@ -1,13 +1,9 @@
#!/bin/sh
-
# Fixme: we should not only do a --verify but also the output.
-
-
. $srcdir/defs.inc || exit 3
-
# ======================================
# I can't compare the out because plain-3 has no LF as last charcater
# but the output has always one. I do not thinkl this is a bug, because
@@ -18,14 +14,17 @@ for i in $plain_files plain-large ; do
$GPG --verify x
done
+
# ======================================
# and once more to check rfc1991
# ======================================
-for i in $plain_files plain-large ; do
- echo "$usrpass1" | $GPG --passphrase-fd 0 \
- --rfc1991 --digest-algo md5 -sat -o x --yes $i
- $GPG --verify x
-done
+
+if have_cipher_algo "RSA"; then
+ for i in $plain_files plain-large ; do
+ $GPG -u $usrkeyid3 --rfc1991 --digest-algo md5 -sat -o x --yes $i
+ $GPG --verify x
+ done
+fi
# ======================================
# and one with long lines
@@ -38,6 +37,7 @@ EOF
echo "$usrpass1" | $GPG --passphrase-fd 0 --clearsign -o x --yes y
$GPG --verify x
+
# ======================================
# and one with only one long lines
# ======================================
@@ -46,6 +46,8 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
EOF
echo "$usrpass1" | $GPG --passphrase-fd 0 --clearsign -o x --yes y
$GPG --verify x
+
+
# ======================================
# and one with an empty body
# ======================================
@@ -54,6 +56,7 @@ EOF
echo "$usrpass1" | $GPG --passphrase-fd 0 --clearsign -o x --yes y
$GPG --verify x
+
# ======================================
# and one with one empty line at the end
# ======================================
@@ -97,7 +100,3 @@ EOF
echo "$usrpass1" | $GPG --passphrase-fd 0 \
--not-dash-escaped --clearsign -o x --yes y
$GPG --verify x
-
-
-
-