mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
tests: Avoid relying on implicit gpg commands.
* tests/openpgp/armdetach.scm: Always use an explicit command instead of relying on gpg to guess what we want. * tests/openpgp/armdetachm.scm: Likewise. * tests/openpgp/armencrypt.scm: Likewise. * tests/openpgp/armencryptp.scm: Likewise. * tests/openpgp/armor.scm: Likewise. * tests/openpgp/armsignencrypt.scm: Likewise. * tests/openpgp/armsigs.scm: Likewise. * tests/openpgp/clearsig.scm: Likewise. * tests/openpgp/compression.scm: Likewise. * tests/openpgp/conventional-mdc.scm: Likewise. * tests/openpgp/conventional.scm: Likewise. * tests/openpgp/decrypt-dsa.scm: Likewise. * tests/openpgp/decrypt.scm: Likewise. * tests/openpgp/detach.scm: Likewise. * tests/openpgp/detachm.scm: Likewise. * tests/openpgp/ecc.scm: Likewise. * tests/openpgp/encrypt-dsa.scm: Likewise. * tests/openpgp/encrypt-multifile.scm: Likewise. * tests/openpgp/encrypt.scm: Likewise. * tests/openpgp/encryptp.scm: Likewise. * tests/openpgp/seat.scm: Likewise. * tests/openpgp/signencrypt-dsa.scm: Likewise. * tests/openpgp/signencrypt.scm: Likewise. * tests/openpgp/sigs-dsa.scm: Likewise. * tests/openpgp/sigs.scm: Likewise. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
1b28d9dbe0
commit
cde626e7f7
25 changed files with 38 additions and 39 deletions
|
@ -101,8 +101,7 @@ Ic1RdzgeCfosMF+l/zVRchcLKzenEQA=
|
|||
(lettmp (x y)
|
||||
(call-with-output-file
|
||||
x (lambda (p) (display (eval test (current-environment)) p)))
|
||||
(call-check `(,(tool 'gpg) --verify ,x))
|
||||
(call-check `(,(tool 'gpg) --output ,y ,x))
|
||||
(call-check `(,(tool 'gpg) --output ,y --verify ,x))
|
||||
(unless (file=? y z) (fail "mismatch"))))
|
||||
'(msg_opaque_signed_256 msg_opaque_signed_384 msg_opaque_signed_521)))
|
||||
|
||||
|
@ -181,7 +180,7 @@ Rg==
|
|||
(lettmp (x y)
|
||||
(call-with-output-file
|
||||
x (lambda (p) (display (eval test (current-environment)) p)))
|
||||
(call-check `(,@GPG --yes --output ,y ,x))
|
||||
(call-check `(,@GPG --yes --output ,y --decrypt ,x))
|
||||
(unless (file=? y z) (fail "mismatch"))))
|
||||
'(msg_encrypted_256 msg_encrypted_384 msg_encrypted_521)))
|
||||
|
||||
|
@ -200,7 +199,7 @@ Rg==
|
|||
(tr:do
|
||||
(tr:open source)
|
||||
(tr:gpg "" `(--yes --encrypt --recipient ,keyid))
|
||||
(tr:gpg "" '(--yes))
|
||||
(tr:gpg "" '(--yes --decrypt))
|
||||
(tr:assert-identity source)))
|
||||
mainkeyids))
|
||||
(append plain-files data-files))
|
||||
|
@ -217,7 +216,7 @@ Rg==
|
|||
(tr:do
|
||||
(tr:open source)
|
||||
(tr:gpg "" `(--yes --sign --local-user ,keyid))
|
||||
(tr:gpg "" '(--yes))
|
||||
(tr:gpg "" '(--yes --decrypt))
|
||||
(tr:assert-identity source)))
|
||||
mainkeyids))
|
||||
(append plain-files data-files))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue