From f22583c6c4030a9e3bb3a33556e7c0d3b3d9a9d1 Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Tue, 27 Aug 2024 16:13:22 +0200 Subject: [PATCH] tests: Add coverage for panic on riscv64 It merely duplicates the existing aarch64 coverage right now, but it will become actually useful with the upcoming changes. Signed-off-by: Andrea Bolognani Reviewed-by: Michal Privoznik --- .../riscv64-panic-no-model.riscv64-latest.err | 1 + tests/qemuxmlconfdata/riscv64-panic-no-model.xml | 13 +++++++++++++ tests/qemuxmlconftest.c | 1 + 3 files changed, 15 insertions(+) create mode 100644 tests/qemuxmlconfdata/riscv64-panic-no-model.riscv64-latest.err create mode 100644 tests/qemuxmlconfdata/riscv64-panic-no-model.xml diff --git a/tests/qemuxmlconfdata/riscv64-panic-no-model.riscv64-latest.err b/tests/qemuxmlconfdata/riscv64-panic-no-model.riscv64-latest.err new file mode 100644 index 0000000000..8e3f2c194d --- /dev/null +++ b/tests/qemuxmlconfdata/riscv64-panic-no-model.riscv64-latest.err @@ -0,0 +1 @@ +unsupported configuration: the QEMU binary does not support the ISA panic device diff --git a/tests/qemuxmlconfdata/riscv64-panic-no-model.xml b/tests/qemuxmlconfdata/riscv64-panic-no-model.xml new file mode 100644 index 0000000000..9731a997ea --- /dev/null +++ b/tests/qemuxmlconfdata/riscv64-panic-no-model.xml @@ -0,0 +1,13 @@ + + guest + 1ccfd97d-5eb4-478a-bbe6-88d254c16db7 + 4194304 + 4 + + hvm + + + /usr/bin/qemu-system-riscv64 + + + diff --git a/tests/qemuxmlconftest.c b/tests/qemuxmlconftest.c index f7c0cf4ad0..e97d0e7bdc 100644 --- a/tests/qemuxmlconftest.c +++ b/tests/qemuxmlconftest.c @@ -2649,6 +2649,7 @@ mymain(void) DO_TEST_CAPS_LATEST("panic-double"); DO_TEST_CAPS_LATEST("panic-no-address"); DO_TEST_CAPS_ARCH_LATEST_PARSE_ERROR("aarch64-panic-no-model", "aarch64"); + DO_TEST_CAPS_ARCH_LATEST_PARSE_ERROR("riscv64-panic-no-model", "riscv64"); DO_TEST_CAPS_LATEST("pvpanic-pci-x86_64"); DO_TEST_CAPS_ARCH_LATEST("pvpanic-pci-aarch64", "aarch64");