[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v16 64/99] tests: do not run test-hmp on all machines for ARM KVM
From: |
Alex Bennée |
Subject: |
[PATCH v16 64/99] tests: do not run test-hmp on all machines for ARM KVM-only |
Date: |
Fri, 4 Jun 2021 16:52:37 +0100 |
From: Claudio Fontana <cfontana@suse.de>
on ARM we currently list and build all machines, even when
building KVM-only, without TCG.
Until we fix this (and we only list and build machines that are
compatible with KVM), only test specifically using the "virt"
machine in this case.
Signed-off-by: Claudio Fontana <cfontana@suse.de>
Cc: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
tests/qtest/test-hmp.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/tests/qtest/test-hmp.c b/tests/qtest/test-hmp.c
index 413eb95d2a..1d4b4f2f0e 100644
--- a/tests/qtest/test-hmp.c
+++ b/tests/qtest/test-hmp.c
@@ -157,8 +157,28 @@ int main(int argc, char **argv)
g_test_init(&argc, &argv, NULL);
+ /*
+ * XXX currently we build also boards for ARM that are incompatible with
KVM.
+ * We therefore need to check this explicitly, and only test virt for
kvm-only
+ * arm builds.
+ * After we do the work of Kconfig etc to ensure that only KVM-compatible
boards
+ * are built for the kvm-only build, we could remove this.
+ */
+#ifndef CONFIG_TCG
+ {
+ const char *arch = qtest_get_arch();
+
+ if (strcmp(arch, "arm") == 0 || strcmp(arch, "aarch64") == 0) {
+ add_machine_test_case("virt");
+ goto add_machine_test_done;
+ }
+ }
+#endif /* !CONFIG_TCG */
+
qtest_cb_for_every_machine(add_machine_test_case, g_test_quick());
+ goto add_machine_test_done;
+ add_machine_test_done:
/* as none machine has no memory by default, add a test case with memory */
qtest_add_data_func("hmp/none+2MB", g_strdup("none -m 2"), test_machine);
--
2.20.1
- Re: [PATCH v16 79/99] target/arm: tcg: restrict ZCR cpregs to TARGET_AARCH64, (continued)
- [PATCH v16 62/99] target/arm: remove kvm-stub.c, Alex Bennée, 2021/06/04
- [PATCH v16 94/99] target/arm: move CONFIG_V7M out of default-devices, Alex Bennée, 2021/06/04
- [PATCH v16 70/99] target/arm: move TCG gt timer creation code in tcg/, Alex Bennée, 2021/06/04
- [PATCH v16 18/99] target/arm: tcg: add sysemu and user subdirs, Alex Bennée, 2021/06/04
- [PATCH v16 52/99] target/arm: rename handle_semihosting to tcg_handle_semihosting, Alex Bennée, 2021/06/04
- [PATCH v16 32/99] target/arm: move cpsr_read, cpsr_write to cpu_common, Alex Bennée, 2021/06/04
- [PATCH v16 26/99] target/arm: move physical address translation to cpu-mmu, Alex Bennée, 2021/06/04
- [PATCH v16 64/99] tests: do not run test-hmp on all machines for ARM KVM-only,
Alex Bennée <=
- [PATCH v16 28/99] target/arm: split cpregs from tcg/helper.c, Alex Bennée, 2021/06/04
- [PATCH v16 58/99] target/arm: move kvm-const.h, kvm.c, kvm64.c, kvm_arm.h to kvm/, Alex Bennée, 2021/06/04
- [PATCH v16 39/99] target/arm: move arm_cpu_list to common_cpu, Alex Bennée, 2021/06/04
- [PATCH v16 43/99] target/arm: move a15 cpu model away from the TCG-only models, Alex Bennée, 2021/06/04
- [PATCH v16 85/99] target/arm: cpu-pauth: new module for ARMv8.3 Pointer Authentication, Alex Bennée, 2021/06/04