diff options
Diffstat (limited to 'checks/clearsig.test')
-rwxr-xr-x | checks/clearsig.test | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/checks/clearsig.test b/checks/clearsig.test index a8d5039bd..768c59d9b 100755 --- a/checks/clearsig.test +++ b/checks/clearsig.test @@ -2,19 +2,17 @@ . defs.inc || exit 3 -#info Checking cleartext signatures -# There is a minor glitch, which appends an lf to the cleartext. -# I do not consider that a bug, but I have to use the head .. mimic. -# It is not clear what should happen to leading LFs, we must -# change the defintion of cleartext, so that only 1 empty line -# must follow the headers, but some specs say: any number of empty lines .. -# clean-sat removes leading LFs -# I know that this does not work for random data files (due to large lines -# or what ever) - I hope we can live with it. +# 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 echo "$usrpass1" | ./run-gpg --passphrase-fd 0 -sat -o x --yes $i - ./run-gpg -o y --yes x - ../tools/clean-sat < $i > z - head -c $[ $(cat y | wc -c) - 1 ] y | diff - z || error "$i: mismatch" + ./run-gpg --verify x +done +# and once more to check rfc1991 +for i in $plain_files; do + echo "$usrpass1" | ./run-gpg --passphrase-fd 0 \ + --rfc1991 --digest-algo md5 -sat -o x --yes $i + ./run-gpg --verify x done |