diff options
Diffstat (limited to 'checks/clearsig.test')
-rwxr-xr-x | checks/clearsig.test | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/checks/clearsig.test b/checks/clearsig.test index f77fd5db0..8e502b41d 100755 --- a/checks/clearsig.test +++ b/checks/clearsig.test @@ -46,6 +46,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 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 @@ -68,9 +69,8 @@ $srcdir/run-gpg --verify x # ====================================== -# I think this file will be contructed wrong (gpg 0.9.3) +# I think this file will be constructed 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 echo_n " " >>y @@ -78,6 +78,26 @@ echo "$usrpass1" | $srcdir/run-gpg --passphrase-fd 0 --clearsign -o x --yes y $srcdir/run-gpg --verify x +# ====================================== +# check our special diff mode +# ====================================== +cat >y <<EOF +--- mainproc.c Tue Jun 27 09:28:11 2000 ++++ mainproc.c~ Thu Jun 8 22:50:25 2000 +@@ -1190,16 +1190,13 @@ + md_enable( c->mfx.md, n1->pkt->pkt.signature->digest_algo); + } + /* ask for file and hash it */ +- if( c->sigs_only ) { ++ if( c->sigs_only ) + rc = hash_datafiles( c->mfx.md, NULL, + c->signed_data, c->sigfilename, + n1? (n1->pkt->pkt.onepass_sig->sig_class == 0x01):0 ); +EOF +echo "$usrpass1" | $srcdir/run-gpg --passphrase-fd 0 \ + --not-dash-escaped --clearsign -o x --yes y +$srcdir/run-gpg --verify x + |