Home GnuPG

tests/benchmark: Skip unavailable PK algorithms

Description

tests/benchmark: Skip unavailable PK algorithms

* tests/benchmark.c (cipher_bench, rsa_bench, elg_bench, dsa_bench,
  ecc_bench): Do not run benchmarks for PK algorithms that are not
  supported in the current build.

When libgcrypt is configured with a non-default --enable-pubkey-ciphers
option, some of the benchmarks cannot be run because the algorithms are
not supported. Disable those using preprocessor macros, but add explicit
uses of the function parameters to avoid compiler warnings.

  • 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
rCe78cf3df23a2: tests/basic: Skip tests if PK algo is unavailable
Branches
Unknown
Tags
Unknown
Tasks
T6048: Test suite fixes with --enable-pubkey-ciphers=ecc