Home GnuPG

tests/basic: Skip tests if PK algo is unavailable

Description

tests/basic: Skip tests if PK algo is unavailable

* tests/basic.c (check_pubkey): Skip tests if the required public key
  algorithm is not available.

When libgcrypt is configured with a non-default --enable-pubkey-ciphers
option (e.g., without RSA), some of the tests cannot be run because the
algorithms are not supported. Check for unsupported algorithms using
gcry_pk_test_algo and print a message if they are not available.

  • GnuPG-bug-id: T6048
  • Signed-off-by: Clemens Lang <cllang@redhat.com>

Details

Provenance
neverpanicAuthored on Jun 21 2022, 7:00 PM
gniibeCommitted on Jul 1 2022, 9:02 AM
Parents
rC4f4da6cbf065: tests/pubkey: Skip tests if PK algo is unavailable
Branches
Unknown
Tags
Unknown
Tasks
T6048: Test suite fixes with --enable-pubkey-ciphers=ecc