]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/tpm: Display if swtpm is not found or --tpm2 not supported
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 3 Oct 2018 13:21:29 +0000 (17:21 +0400)
committerStefan Berger <stefanb@linux.ibm.com>
Tue, 30 Oct 2018 17:53:15 +0000 (13:53 -0400)
commite2f246a50b6d15a3b87a5371a868d21cffe48ba0
treefc38e9a4187bb69c5dd796ef8f851538d8c69c8a
parentc1d99200dd3d7f73ebe13b32f12944d3e48a2cb9
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 <marcandre.lureau@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
tests/tpm-tests.c
tests/tpm-util.c
tests/tpm-util.h