Mailing List Archive

gpg 2.2.8: Test FAILures
I don't know if these are important, but maybe it's worth sending
to the list (removed the "PASS" entries to reduce the amount of
data).

Making check in gpgscm
...
Checking decryption of supplied files
> plain-1 gpg: encrypted with 1024-bit ELG key, ID ABAB28A247BE2775, created 2003-12-31
"Test one (pp=def) <one@example.com>"
gpg: uncompressing failed: Unknown compression algorithm
: (() ((throw (:stderr result)) (call-popen cmd input)))
0: #<CLOSURE>
1: tests.scm:443: (apply throw error)
FAIL: tests/openpgp/decrypt.scm
Checking decryption of supplied files using --multifile.
("SOMEDIR/gnupg-2.2.8/g10/gpg" --no-permission-warning --always-trust --decrypt --multifile "plain-1.asc" "plain-2.asc" "plain-3.asc" "plain-large.asc") failed: gpg: encrypted with 1024-bit ELG key, ID ABAB28A247BE2775, created 2003-12-31
"Test one (pp=def) <one@example.com>"
gpg: uncompressing failed: Unknown compression algorithm
gpg: encrypted with 1024-bit ELG key, ID ABAB28A247BE2775, created 2003-12-31
"Test one (pp=def) <one@example.com>"
gpg: uncompressing failed: Unknown compression algorithm
gpg: encrypted with 1024-bit ELG key, ID ABAB28A247BE2775, created 2003-12-31
"Test one (pp=def) <one@example.com>"
gpg: uncompressing failed: Unknown compression algorithm
gpg: encrypted with 1024-bit ELG key, ID ABAB28A247BE2775, created 2003-12-31
"Test one (pp=def) <one@example.com>"
gpg: uncompressing failed: Unknown compression algorithm

0: tests.scm:122: (throw (string-append (stringify what) " failed") (:stderr result))
1: decrypt-multifile.scm:38: (call-check `(,@gpg --decrypt --multifile ,@encrypted-files))
FAIL: tests/openpgp/decrypt-multifile.scm
Checking decryption of supplied DSA encrypted file
> plain-1 gpg: encrypted with 768-bit ELG key, ID 5B7A02F0CB879DE9, created 1998-03-17
"pgp5 test <pgp5@dev.null>"
gpg: uncompressing failed: Unknown compression algorithm
gpg: WARNING: message was not integrity protected
: (() ((throw (:stderr result)) (call-popen cmd input)))
0: #<CLOSURE>
1: tests.scm:443: (apply throw error)
FAIL: tests/openpgp/decrypt-dsa.scm
Checking decryption of supplied files using the session key.
> plain-1 gpg: encrypted with 1024-bit ELG key, ID ABAB28A247BE2775, created 2003-12-31
"Test one (pp=def) <one@example.com>"
gpg: session key: '2:93E759AAACAE2A1A3D6C13AF185F846ACF803D684C0DB6BE'
gpg: uncompressing failed: Unknown compression algorithm

0: tests.scm:129: (throw (:stderr result))
1: decrypt-session-key.scm:25: (call-popen `(,@gpg --status-fd=1 --decrypt --show-session-key --output ,sink ,filename) "")
FAIL: tests/openpgp/decrypt-session-key.scm
Checking unwrapping the encryption.
> encsig-2-keys-3 ("SOMEDIR/gnupg-2.2.8/g10/gpg" --no-permission-warning --always-trust --verify "/tmp/gpgscm-20180609T013249-decrypt-unwrap-verify-fblHp2/unwrapped") failed: gpg: uncompressing failed: Unknown compression algorithm
gpg: verify signatures failed: Unknown compression algorithm

0: tests.scm:122: (throw (string-append (stringify what) " failed") (:stderr result))
1: decrypt-unwrap-verify.scm:40: (call-check `(,@gpg --verify ,unwrapped))
2: init.scm:443: (thunk)
FAIL: tests/openpgp/decrypt-unwrap-verify.scm

> plain-1 plain-2 plain-3 plain-large data-500 data-9000 data-32000 data-80000 <
Checking bug 537: MDC problem with old style compressed packets.
gpg: encrypted with 1024-bit ELG key, ID ABAB28A247BE2775, created 2003-12-31
"Test one (pp=def) <one@example.com>"
gpg: uncompressing failed: Unknown compression algorithm

...

0: tests.scm:129: (throw (:stderr result))
1: signencrypt.scm:35: (call-popen `(,@gpg --yes --passphrase-fd "0" --output ,tmp --decrypt ,(in-srcdir "tests" "openpgp" "bug537-test.data.asc")) usrpass1)
FAIL: tests/openpgp/signencrypt.scm

....

Checking bogus signature
> #x2d #xca <
Checking that a valid signature is verified as such
> msg_ols_asc msg_cols_asc (((SOMEDIR/gnupg-2.2.8/g10/gpg --no-permission-warning --always-trust --verify) 6446 2))
FAIL: tests/openpgp/verify.scm
Checking verification of supplied files using --multifile.
gpg: Signature made Wed Jun 22 10:00:38 2016 CEST
gpg: using RSA key AA43F1DCC7FED1B7
gpg: issuer "steve.biko@example.net"
gpg: Good signature from "steve.biko@example.net" [unknown]
gpg: WARNING: Using untrusted key!
gpg: uncompressing failed: Unknown compression algorithm

0: tests.scm:129: (throw (:stderr result))
1: verify-multifile.scm:28: (call-popen `(,@gpg --verify --multifile --status-fd=1 ,@(map (lambda (name) (in-srcdir "tests" "openpgp" "samplemsgs" name)) files)) "")
FAIL: tests/openpgp/verify-multifile.scm
Checking bogus signature
> #x2d #xca <
Checking that a valid signature is verified as such
> msg_ols_asc msg_cols_asc (((SOMEDIR/gnupg-2.2.8/g10/gpgv --keyring pubring.kbx) 6483 2))
FAIL: tests/openpgp/gpgv.scm
....
Checking armored_key_8192
Importing alpha_seckey
Checking for bug #1179
(((SOMEDIR/gnupg-2.2.8/g10/gpg --no-permission-warning --always-trust --output - --decrypt -) 6519 2))
FAIL: tests/openpgp/armor.scm
....
Preparing for ECC test
Importing ECC public keys
Checking opaque ECDSA signatures
> msg_opaque_signed_256 ("SOMEDIR/gnupg-2.2.8/g10/gpg" --output "/tmp/gpgscm-20180609T013352-ecc-WhAF3Q/y" --verify "/tmp/gpgscm-20180609T013352-ecc-OgUWUX/x") failed: gpg: uncompressing failed: Unknown compression algorithm
gpg: verify signatures failed: Unknown compression algorithm

0: tests.scm:122: (throw (string-append (stringify what) " failed") (:stderr result))
1: ecc.scm:79: (call-check `(,(tool 'gpg) --output ,y --verify ,x))
2: init.scm:429: (func (let ((current-ws *active-windings*)) (lambda (x) (set-active-windings! current-ws) (continuation x))))
3: #<CLOSURE>
4: init.scm:422: (old-c/cc (lambda (continuation) (func (let ((current-ws *active-windings*)) (lambda (x) (set-active-windings! current-ws) (continuation x))))))
5: (call/cc (lambda (**exit**) (push-handler (lambda *error* (**exit** (begin (remove-temporary-file y) (rethrow *error*))))) (let ((gensym-44 (begin (begin (call-with-output-file x (lambda (p) (display (eval test (current-environment)) p))) (call-check `(,(tool 'gpg) --output ,y --verify ,x)) (unless (file=? y z) (fail "mismatch")))))) (pop-handler) gensym-44)))
FAIL: tests/openpgp/ecc.scm
....
gpgscm: error running '/etc/ssh': probably not installed
(wait-process "/etc/ssh" 6898 #t): Configuration error
0: ffi.scm:39: (throw (get-output-string args') message)
1: ffi.scm:30: (ffi-fail name args (strerror (car result)))
2: <unknown>:1: (ffi-apply "wait-process" _-wait-process a)
3: tests.scm:103: (wait-process (car what) (:pid h) #t)
4: ssh-import.scm:40: (call-with-io `(,ssh "-V") "")
FAIL: tests/openpgp/ssh-import.scm
....
===================
60 tests run, 45 succeeded, 12 failed, 0 failed expectedly, 0 succeeded unexpectedly, 3 skipped.
Failed tests: tests/openpgp/ssh-import.scm tests/openpgp/ecc.scm tests/openpgp/armor.scm tests/openpgp/gpgv.scm tests/openpgp/verify-multifile.scm tests/openpgp/verify.scm tests/openpgp/signencrypt.scm tests/openpgp/decrypt-unwrap-verify.scm tests/openpgp/decrypt-session-key.scm tests/openpgp/decrypt-dsa.scm tests/openpgp/decrypt-multifile.scm tests/openpgp/decrypt.scm
Skipped tests: tests/openpgp/issue2929.scm tests/openpgp/tofu.scm tests/openpgp/4gb-packet.scm
===================

_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-devel
Re: gpg 2.2.8: Test FAILures [ In reply to ]
On Sat, 9 Jun 2018 03:48, ca+gnupg-devel@esmtp.org said:

> gpg: uncompressing failed: Unknown compression algorithm

What is the output of gpg --version?


Salam-Shalom,

Werner

--
# Please read: Daniel Ellsberg - The Doomsday Machine #
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
Re: gpg 2.2.8: Test FAILures [ In reply to ]
On Sat, Jun 09, 2018, Werner Koch wrote:
> On Sat, 9 Jun 2018 03:48, ca+gnupg-devel@esmtp.org said:

> > gpg: uncompressing failed: Unknown compression algorithm

> What is the output of gpg --version?

gpg (GnuPG) 2.2.8
libgcrypt 1.8.2
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: $HOME/.gnupg ## modified...
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed

ggp has been configured with:
--disable-bzip2 --disable-zip

If at least one compression method is needed, maybe configure should
enforce that?
Otherwise it might be a good idea to let the tests check if they
can succeed at all (its requirement/preconditions are met).

After enabling one compression method only
tests/openpgp/ssh-import.scm
fails; this message:

gpgscm: error running '/etc/ssh': probably not installed
is a bit confusing: /etc/ssh is a directory on the system,
I "guess" the algorithm to look for the ssh binary finds
the directory:

(define path (string-split (getenv "PATH") *pathsep*))
(define ssh #f)
(catch (skip "ssh not found") (set! ssh (path-expand "ssh" path)))

because /etc is in PATH. Maybe it should check if the "item" it
found is actually an executable program?

S_ISREG(st_mode) && (st_mode & (S_IXUSR|S_IXGRP|S_IXOTH))

_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-devel