From e2f246a50b6d15a3b87a5371a868d21cffe48ba0 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Wed, 3 Oct 2018 17:21:29 +0400 Subject: tests/tpm: Display if swtpm is not found or --tpm2 not supported If swtpm is not found in $PATH or --tpm2 isn't supported, we display this in the test log. We cannot mark the test as skipped due to a bug in certain versions of the gtester environment that interprets a skipped test as failure. Signed-off-by: Marc-André Lureau Reviewed-by: Stefan Berger Signed-off-by: Stefan Berger --- tests/tpm-util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/tpm-util.h') diff --git a/tests/tpm-util.h b/tests/tpm-util.h index 330b9657fe..9e98bc5124 100644 --- a/tests/tpm-util.h +++ b/tests/tpm-util.h @@ -32,6 +32,8 @@ void tpm_util_pcrextend(QTestState *s, tx_func *tx); void tpm_util_pcrread(QTestState *s, tx_func *tx, const unsigned char *exp_resp, size_t exp_resp_size); +bool tpm_util_swtpm_has_tpm2(void); + gboolean tpm_util_swtpm_start(const char *path, GPid *pid, SocketAddress **addr, GError **error); void tpm_util_swtpm_kill(GPid pid); -- cgit v1.2.3-55-g7522