tests: Use QMP to check whether a TPM device model is available
authorStefan Berger <stefanb@linux.ibm.com>
Mon, 2 Aug 2021 21:52:44 +0000 (17:52 -0400)
committerStefan Berger <stefanb@linux.ibm.com>
Tue, 31 Aug 2021 21:33:12 +0000 (17:33 -0400)
commit58edc32cfc796d56336a283aace5bdb5de25dc80
treea776a408895a8fd1090becc37570e32d26217cdd
parent343776a68528a132ff9068bb0731f584b38ff2ea
tests: Use QMP to check whether a TPM device model is available

Use QMP to check whether a given TPM device model is available and if it
is not the case then do not register the tests that require it.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20210802215246.1433175-9-stefanb@linux.ibm.com
tests/qtest/bios-tables-test.c
tests/qtest/tpm-emu.c
tests/qtest/tpm-emu.h