]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-tpm2: skip RSA generating TPM2 tests on physical hw
authorLennart Poettering <lennart@poettering.net>
Mon, 13 Nov 2023 15:43:30 +0000 (16:43 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 13 Nov 2023 15:51:57 +0000 (16:51 +0100)
commit3aea672bff95bbebaa80bc21b79eb1275157e0f4
tree8fa91899a27983d4130241764daeca7809e8d1d2
parent47a7a4d404366cf6efc89f7ea1bfe30b8a8d0299
test-tpm2: skip RSA generating TPM2 tests on physical hw

The TPM2 tests that genreate an RSA primary key are fast on vtpms, but
very slow on physical TPMs, simply because TPMs aren't precisely fast
devices. It makes sense to keep the tests around however. Hence hide the
test behind the "slow test" logic by default – but only if we run on
physical hw, and keep them in place on VMs (where we'd expect a vtpm, if
any).
src/test/test-tpm2.c