551cabdfa9
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>
28 lines
832 B
C
28 lines
832 B
C
/*
|
|
* QTest TPM commont test code
|
|
*
|
|
* Copyright (c) 2018 IBM Corporation
|
|
*
|
|
* Authors:
|
|
* Stefan Berger <stefanb@linux.vnet.ibm.com>
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*/
|
|
|
|
#ifndef TESTS_TPM_TESTS_H
|
|
#define TESTS_TPM_TESTS_H
|
|
|
|
#include "tpm-util.h"
|
|
|
|
void tpm_test_swtpm_test(const char *src_tpm_path, tx_func *tx,
|
|
const char *ifmodel, const char *machine_options);
|
|
|
|
void tpm_test_swtpm_migration_test(const char *src_tpm_path,
|
|
const char *dst_tpm_path,
|
|
const char *uri, tx_func *tx,
|
|
const char *ifmodel,
|
|
const char *machine_options);
|
|
|
|
#endif /* TESTS_TPM_TESTS_H */
|