test: tpm: pass optional machine options to swtpm test functions
commit551cabdfa9acaf6bb245a5c01d3fa4a15fc714de
authorEric Auger <eric.auger@redhat.com>
Thu, 5 Mar 2020 16:51:47 +0000 (5 17:51 +0100)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Thu, 5 Mar 2020 17:18:33 +0000 (5 12:18 -0500)
treef79ad9e658e97abb8a746f937dafc3b09d524708
parentfcaa204194e15ba24cd53087dd616aabbc29e64f
test: tpm: pass optional machine options to swtpm test functions

We plan to use swtpm test functions on ARM for testing the
sysbus TPM-TIS device. However on ARM there is no default machine
type. So we need to explictly pass some machine options on startup.
Let's allow this by adding a new parameter to both swtpm test
functions and update all call sites.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Message-id: 20200305165149.618-9-eric.auger@redhat.com
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
tests/qtest/tpm-crb-swtpm-test.c
tests/qtest/tpm-tests.c
tests/qtest/tpm-tests.h
tests/qtest/tpm-tis-swtpm-test.c
tests/qtest/tpm-util.c
tests/qtest/tpm-util.h