diff options
Diffstat (limited to 'checks/clearsig.test')
-rwxr-xr-x | checks/clearsig.test | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/checks/clearsig.test b/checks/clearsig.test index e5445db7b..99dca45f8 100755 --- a/checks/clearsig.test +++ b/checks/clearsig.test @@ -7,20 +7,29 @@ . $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 # it is clear text and not binary text. -for i in $plain_files; do +# ====================================== +for i in $plain_files plain-large ; do echo "$usrpass1" | $srcdir/run-gpg --passphrase-fd 0 -sat -o x --yes $i $srcdir/run-gpg --verify x done + +# ====================================== # and once more to check rfc1991 -for i in $plain_files; do +# ====================================== +for i in $plain_files plain-large ; do echo "$usrpass1" | $srcdir/run-gpg --passphrase-fd 0 \ --rfc1991 --digest-algo md5 -sat -o x --yes $i $srcdir/run-gpg --verify x done + +# ====================================== # and one with long lines +# ====================================== cat >y <<EOF xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxyx @@ -28,19 +37,25 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx EOF echo "$usrpass1" | $srcdir/run-gpg --passphrase-fd 0 --clearsign -o x --yes y $srcdir/run-gpg --verify x + +# ====================================== # and one with only one long lines +# ====================================== cat >y <<EOF xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxyx EOF echo "$usrpass1" | $srcdir/run-gpg --passphrase-fd 0 --clearsign -o x --yes y $srcdir/run-gpg --verify x # and one with an empty body +# ====================================== cat >y <<EOF EOF echo "$usrpass1" | $srcdir/run-gpg --passphrase-fd 0 --clearsign -o x --yes y $srcdir/run-gpg --verify x +# ====================================== # and one with one empty line at the end +# ====================================== cat >y <<EOF line 1 line 2 @@ -52,3 +67,17 @@ echo "$usrpass1" | $srcdir/run-gpg --passphrase-fd 0 --clearsign -o x --yes y $srcdir/run-gpg --verify x +# ====================================== +# I think this file will be contructed wrong (gpg 0.9.3) +# but it should verify okay anyway. +# bash's builtin echo needs the option -e so we use the external one. +# ====================================== +echo "this is a sig test" >y +/bin/echo " \c" >>y +echo "$usrpass1" | $srcdir/run-gpg --passphrase-fd 0 --clearsign -o x --yes y +$srcdir/run-gpg --verify x + + + + + |