aboutsummaryrefslogtreecommitdiffstats
path: root/checks
diff options
context:
space:
mode:
Diffstat (limited to 'checks')
-rw-r--r--checks/ChangeLog4
-rw-r--r--checks/Makefile.am2
-rwxr-xr-xchecks/clearsig.test22
-rwxr-xr-xchecks/defs.inc3
-rwxr-xr-xchecks/seat.test10
5 files changed, 26 insertions, 15 deletions
diff --git a/checks/ChangeLog b/checks/ChangeLog
index d0bcf614b..6e1cb4187 100644
--- a/checks/ChangeLog
+++ b/checks/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jul 8 10:43:47 1998 Werner Koch ([email protected])
+
+ * seat.test: New.
+
Mon May 18 15:40:02 1998 Werner Koch ([email protected])
* Makefile.am: Now uses mk-tdata to produce random test data.
diff --git a/checks/Makefile.am b/checks/Makefile.am
index ae09b207b..985778a1a 100644
--- a/checks/Makefile.am
+++ b/checks/Makefile.am
@@ -4,7 +4,7 @@ TESTS = version.test mds.test \
decrypt.test decrypt-dsa.test \
sigs.test sigs-dsa.test \
encrypt.test encrypt-dsa.test \
- clearsig.test encryptp.test detach.test \
+ seat.test clearsig.test encryptp.test detach.test \
armsigs.test armencrypt.test armencryptp.test \
signencrypt.test signencrypt-dsa.test \
armsignencrypt.test armdetach.test \
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
diff --git a/checks/defs.inc b/checks/defs.inc
index 78954426f..61e07ee5c 100755
--- a/checks/defs.inc
+++ b/checks/defs.inc
@@ -21,9 +21,8 @@ dsa_usrname2="0xCB879DE9"
dsa_keyrings="--keyring ./pubring.pkr --secret-keyring ./secring.skr"
-#plain_files="plain-1 plain-2 plain-3"
+plain_files="plain-1 plain-2 plain-3"
#data_files="data-500 data-9000 data-32000 data-80000"
-plain_files="plain-1 plain-2"
data_files="data-500 data-9000"
exp_files=""
diff --git a/checks/seat.test b/checks/seat.test
new file mode 100755
index 000000000..7e95b8bd8
--- /dev/null
+++ b/checks/seat.test
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+. defs.inc || exit 3
+
+for i in $plain_files ; do
+ echo "$usrpass1" | ./run-gpg --passphrase-fd 0 -seat -r two -o x --yes $i
+ ./run-gpg -o y --yes x
+ cmp $i y || error "$i: mismatch"
+done
+