mirror of
https://github.com/qemu/qemu.git
synced 2025-08-03 15:30:46 +00:00

Move common TPM test functions from tpm-crb-swtpm-test.c to tpm-tests.c so that for example test cases with the TPM TIS interface can use the same code. Prefix all funcions with 'tpm_test_'. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
25 lines
637 B
C
25 lines
637 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);
|
|
|
|
void tpm_test_swtpm_migration_test(const char *src_tpm_path,
|
|
const char *dst_tpm_path,
|
|
const char *uri, tx_func *tx);
|
|
|
|
#endif /* TESTS_TPM_TESTS_H */
|