Home GnuPG
Diffusion GnuPG 6720f1343aef

tpm2d: add tests for the tpm2daemon

Description

tpm2d: add tests for the tpm2daemon

* configure.ac: Detect TPM emulator and enable tests.
* tests/tpm2dtests/: New test suite.
* tests/Makefile.am: Run tests.

Add a set of tests that exercise tpm2daemon handling of keys and
verify compatibility with non-tpm based keys.

Running this test infrastructure requires a tpm emulator, which is
tested for during configuration. If an emulator is not found, the
tests won't be run since they require the presence of a TPM (although
the TPM handling code will still be built).

  • Fixed tests/Makefile.am for make distcheck.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
James Bottomley <James.Bottomley@HansenPartnership.com>Authored on Mar 9 2021, 10:50 PM
wernerCommitted on Mar 10 2021, 2:29 PM
Parents
rG92b601fceec7: gpg: Add new command keytotpm to convert a private key to TPM format
Branches
Unknown
Tags
Unknown