From: Andrea Bolognani Date: Wed, 24 Jan 2024 09:31:25 +0000 (+0100) Subject: tests: Add aarch64-panic-no-model X-Git-Tag: v10.1.0-rc1~183 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e8f6624fa25a9a45ee929fe600dd53bf82b3d97;p=thirdparty%2Flibvirt.git tests: Add aarch64-panic-no-model This demonstrates that on aarch64, where a native panic device doesn't exist, it's necessary for the user to specify the model explicitly. Signed-off-by: Andrea Bolognani Reviewed-by: Peter Krempa --- diff --git a/tests/qemuxmlconfdata/aarch64-panic-no-model.aarch64-latest.err b/tests/qemuxmlconfdata/aarch64-panic-no-model.aarch64-latest.err new file mode 100644 index 0000000000..8e3f2c194d --- /dev/null +++ b/tests/qemuxmlconfdata/aarch64-panic-no-model.aarch64-latest.err @@ -0,0 +1 @@ +unsupported configuration: the QEMU binary does not support the ISA panic device diff --git a/tests/qemuxmlconfdata/aarch64-panic-no-model.xml b/tests/qemuxmlconfdata/aarch64-panic-no-model.xml new file mode 100644 index 0000000000..5207e48bbd --- /dev/null +++ b/tests/qemuxmlconfdata/aarch64-panic-no-model.xml @@ -0,0 +1,13 @@ + + guest + 1ccfd97d-5eb4-478a-bbe6-88d254c16db7 + 4194304 + 4 + + hvm + + + /usr/bin/qemu-system-aarch64 + + + diff --git a/tests/qemuxmlconftest.c b/tests/qemuxmlconftest.c index c9706db664..623057fec9 100644 --- a/tests/qemuxmlconftest.c +++ b/tests/qemuxmlconftest.c @@ -2485,6 +2485,7 @@ mymain(void) DO_TEST_CAPS_LATEST("panic"); 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_LATEST("pvpanic-pci-x86_64"); DO_TEST_CAPS_ARCH_LATEST("pvpanic-pci-aarch64", "aarch64");