From 7ad6f8dde071311ee587c41d983475464a1ec5ca Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Fri, 25 Jun 2021 15:31:35 +0200 Subject: [PATCH] tests: Add aarch64-tpm test to qemuxml2xml We're going to change the input file later, and having this additional coverage will demonstrate that such a change does not alter the behavior. Signed-off-by: Andrea Bolognani Tested-by: Liu Yiding Reviewed-by: Michal Privoznik --- .../aarch64-tpm.aarch64-latest.xml | 29 +++++++++++++++++++ tests/qemuxml2xmltest.c | 1 + 2 files changed, 30 insertions(+) create mode 100644 tests/qemuxml2xmloutdata/aarch64-tpm.aarch64-latest.xml diff --git a/tests/qemuxml2xmloutdata/aarch64-tpm.aarch64-latest.xml b/tests/qemuxml2xmloutdata/aarch64-tpm.aarch64-latest.xml new file mode 100644 index 0000000000..e97f39aec3 --- /dev/null +++ b/tests/qemuxml2xmloutdata/aarch64-tpm.aarch64-latest.xml @@ -0,0 +1,29 @@ + + aarch64test + 496d7ea8-9739-544b-4ebd-ef08be936e8b + 1048576 + 1048576 + 1 + + hvm + + + + + + + cortex-a15 + + + destroy + restart + destroy + + /usr/bin/qemu-system-aarch64 + + + + + + diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c index 40e027aaa4..8b7538f666 100644 --- a/tests/qemuxml2xmltest.c +++ b/tests/qemuxml2xmltest.c @@ -783,6 +783,7 @@ mymain(void) DO_TEST_CAPS_LATEST("tpm-emulator-tpm2"); DO_TEST_CAPS_LATEST("tpm-emulator-tpm2-enc"); DO_TEST_CAPS_LATEST("tpm-emulator-tpm2-pstate"); + DO_TEST_CAPS_ARCH_LATEST("aarch64-tpm", "aarch64"); DO_TEST("metadata", NONE); DO_TEST("metadata-duplicate", NONE); -- 2.47.2