gnupg-1.9.0 fails qt TofuInfoTest test

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

gnupg-1.9.0 fails qt TofuInfoTest test

Alon Bar-Lev-3

********* Start testing of TofuInfoTest *********
Config: Using QtTest library 5.6.2, Qt 5.6.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 4.9.3)
PASS   : TofuInfoTest::initTestCase()
PASS   : TofuInfoTest::testTofuNull()
FAIL!  : TofuInfoTest::testTofuInfo() '!strcmp(plaintext.constData(), "Just GNU it!\n")' returned FALSE. ()
   Loc: [t-tofuinfo.cpp(215)]
FAIL!  : TofuInfoTest::testTofuSignCount() '!keys.empty()' returned FALSE. ()
   Loc: [t-tofuinfo.cpp(289)]
FAIL!  : TofuInfoTest::testTofuKeyList() '!keys.empty()' returned FALSE. ()
   Loc: [t-tofuinfo.cpp(320)]
QDEBUG : TofuInfoTest::testTofuPolicy() [hidden email] not found
QDEBUG : TofuInfoTest::testTofuPolicy() Error:  Success
QDEBUG : TofuInfoTest::testTofuPolicy() Homedir is:  "/var/tmp/portage/app-crypt/gpgme-1.9.0/temp/t-tofuinfo-xaLTkj"
QDEBUG : TofuInfoTest::testTofuPolicy() pubring exists:  false  readable?  false  size:  0
QDEBUG : TofuInfoTest::testTofuPolicy() keybox exists:  true  readable?  true  size:  28993
FAIL!  : TofuInfoTest::testTofuPolicy() '!keys.empty()' returned FALSE. ()
   Loc: [t-tofuinfo.cpp(381)]
PASS   : TofuInfoTest::testTofuConflict()
PASS   : TofuInfoTest::cleanupTestCase()
Totals: 4 passed, 4 failed, 0 skipped, 0 blacklisted
********* Finished testing of TofuInfoTest *********
FAIL: t-tofuinfo


_______________________________________________
Gnupg-devel mailing list
[hidden email]
http://lists.gnupg.org/mailman/listinfo/gnupg-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gnupg-1.9.0 fails qt TofuInfoTest test

Alon Bar-Lev-3
On 29 March 2017 at 11:41, Andre Heinecke <[hidden email]> wrote:

>
> Hi,
>
> Mmmh, looking at the test I tried to figure out how this is possible. One
> reason I can think of is that the test just checks for gnupg-2.1.16 but not if
> the used libgcrypt supports curve 25519 (which is used for the test keys). Can
> you please post the output of gpg2 (or gpg) --version of the system the tests
> run to either confirm or disregard that theory?
>
> Or just the version number of libgcrypt, assuming your libgcrypt did not have
> this specially disabled.

Here it is:

gpg (GnuPG) 2.1.18
libgcrypt 1.7.6
Copyright (C) 2017 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/alonbl/.gnupg
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, ZIP, ZLIB, BZIP2

_______________________________________________
Gnupg-devel mailing list
[hidden email]
http://lists.gnupg.org/mailman/listinfo/gnupg-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gnupg-1.9.0 fails qt TofuInfoTest test

Andre Heinecke
Hi,

On Wednesday 29 March 2017 12:31:07 Alon Bar-Lev wrote:
> gpg (GnuPG) 2.1.18
> libgcrypt 1.7.6

Ok so that theory is out of the window. But I realized that the tests don't
check for TOFU support in gnupg but just assume it based on the version
number. So I was able reproduce the test failure if I compile gnupg with --
disable-tofu (or if it's compiled without sqlite).

Should be fixed with:

https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpgme.git;a=commitdiff;h=2c063a8d60418ee59ae80da221420c6f3fa19abb

Thanks for your report,
Andre

--
Andre Heinecke |  ++49-541-335083-262  | http://www.intevation.de/
Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
_______________________________________________
Gnupg-devel mailing list
[hidden email]
http://lists.gnupg.org/mailman/listinfo/gnupg-devel

signature.asc (235 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gnupg-1.9.0 fails qt TofuInfoTest test

Alon Bar-Lev-3
On 30 March 2017 at 15:46, Andre Heinecke <[hidden email]> wrote:

>
> Hi,
>
> On Wednesday 29 March 2017 12:31:07 Alon Bar-Lev wrote:
> > gpg (GnuPG) 2.1.18
> > libgcrypt 1.7.6
>
> Ok so that theory is out of the window. But I realized that the tests don't
> check for TOFU support in gnupg but just assume it based on the version
> number. So I was able reproduce the test failure if I compile gnupg with --
> disable-tofu (or if it's compiled without sqlite).
>
> Should be fixed with:
>
> https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpgme.git;a=commitdiff;h=2c063a8d60418ee59ae80da221420c6f3fa19abb

Working, thanks!

>
> Thanks for your report,
> Andre
>
> --
> Andre Heinecke |  ++49-541-335083-262  | http://www.intevation.de/
> Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998
> Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner

_______________________________________________
Gnupg-devel mailing list
[hidden email]
http://lists.gnupg.org/mailman/listinfo/gnupg-devel
Loading...