rpm-software-management / librepo

A library providing C and Python (libcURL like) API for downloading packages and linux repository metadata in rpm-md format
http://rpm-software-management.github.io/librepo/
GNU Lesser General Public License v2.1
74 stars 90 forks source link

1.17.1: test suite fails in `test_main` unit with `USE_GPGME=OFF` #306

Closed kloczek closed 2 months ago

kloczek commented 3 months ago

Test suite fails with:

+ cd librepo-1.17.1
+ /usr/bin/ctest --test-dir x86_64-redhat-linux-gnu --output-on-failure --force-new-ctest-process -j48 ' '
Internal ctest changing into directory: /home/tkloczko/rpmbuild/BUILD/librepo-1.17.1/x86_64-redhat-linux-gnu
Test project /home/tkloczko/rpmbuild/BUILD/librepo-1.17.1/x86_64-redhat-linux-gnu
    Start 1: test_main
    Start 2: test_python
1/2 Test #1: test_main ........................***Failed    0.13 sec
Tests using directory: /tmp/librepoPNdyru
Running suite(s): checksum
 gpg
 handle

(process:2517851): librepo-WARNING **: 01:44:32.048: WARNING! Deprecated LRO_MIRRORLIST used

(process:2517851): librepo-WARNING **: 01:44:32.048: WARNING! Deprecated LRO_MIRRORLIST used
 internal_mirrorlist
 metalink
 mirrorlist
 package_downloader
 repoconf
 repomd
 url_substitution
 util
 version
93%: Checks: 48, Failures: 3, Errors: 0
/home/tkloczko/rpmbuild/BUILD/librepo-1.17.1/tests/test_gpg.c:51:F:Main:test_gpg_check_signature:0: Checking valid key and data from file failed with "Error during parsing OpenPGP packets"
/home/tkloczko/rpmbuild/BUILD/librepo-1.17.1/tests/test_gpg.c:171:F:Main:test_gpg_check_armored_key_import_test_export:0: Assertion 'subkeys != NULL' failed: subkeys == 0
/home/tkloczko/rpmbuild/BUILD/librepo-1.17.1/tests/test_gpg.c:171:F:Main:test_gpg_check_binary_key_import_test_export:0: Assertion 'subkeys != NULL' failed: subkeys == 0

2/2 Test #2: test_python ......................   Passed   12.32 sec

50% tests passed, 1 tests failed out of 2

Total Test time (real) =  12.32 sec

The following tests FAILED:
          1 - test_main (Failed)
Errors while running CTest

Here is cmake -L output

-- Cache values
CMAKE_BUILD_TYPE:STRING=RelWithDebInfo
CMAKE_INSTALL_PREFIX:PATH=/usr
ENABLE_DOCS:BOOL=ON
ENABLE_PYTHON:BOOL=ON
ENABLE_SELINUX:BOOL=ON
ENABLE_TESTS:BOOL=ON
USE_GPGME:BOOL=OFF
USE_RUN_GNUPG_USER_SOCKET:BOOL=OFF
WITH_ZCHUNK:BOOL=ON
ppisar commented 3 months ago

What's your librpm? How is it built? Does it use Sequoia or internal OpenPGP parser? internal OpenPGP parser is somewhat broken without any prospects in fixing it (e.g. https://github.com/rpm-software-management/rpm/issues/2512).

ppisar commented 2 months ago

The reporter did not provide the requested details for a reproducer.