aboutsummaryrefslogtreecommitdiff
path: root/tests/tpm-util.h
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2019-09-09 12:04:01 +0200
committerThomas Huth <thuth@redhat.com>2020-01-12 11:42:41 +0100
commit1e8a1fae7464ef79c9e50aa0f807d2c511be3c8e (patch)
tree80d1a4f0454b9a75c09461e69f969213350540ea /tests/tpm-util.h
parent10ae5b303a0de07f0659a2c90d9c1266b3908b97 (diff)
test: Move qtests to a separate directory
The tests directory itself is pretty overcrowded, and it's hard to see which test belongs to which test subsystem (unit, qtest, ...). Let's move the qtests to a separate folder for more clarity. Message-Id: <20191218103059.11729-6-thuth@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/tpm-util.h')
-rw-r--r--tests/tpm-util.h51
1 files changed, 0 insertions, 51 deletions
diff --git a/tests/tpm-util.h b/tests/tpm-util.h
deleted file mode 100644
index 5755698ad2..0000000000
--- a/tests/tpm-util.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * QTest TPM utilities
- *
- * 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_UTIL_H
-#define TESTS_TPM_UTIL_H
-
-#include "io/channel-socket.h"
-
-typedef void (tx_func)(QTestState *s,
- const unsigned char *req, size_t req_size,
- unsigned char *rsp, size_t rsp_size);
-
-void tpm_util_crb_transfer(QTestState *s,
- const unsigned char *req, size_t req_size,
- unsigned char *rsp, size_t rsp_size);
-void tpm_util_tis_transfer(QTestState *s,
- const unsigned char *req, size_t req_size,
- unsigned char *rsp, size_t rsp_size);
-
-void tpm_util_startup(QTestState *s, tx_func *tx);
-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);
-
-void tpm_util_migrate(QTestState *who, const char *uri);
-
-void tpm_util_migration_start_qemu(QTestState **src_qemu,
- QTestState **dst_qemu,
- SocketAddress *src_tpm_addr,
- SocketAddress *dst_tpm_addr,
- const char *miguri,
- const char *ifmodel);
-
-void tpm_util_wait_for_migration_complete(QTestState *who);
-
-#endif /* TESTS_TPM_UTIL_H */