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 <abologna@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Andrea Bolognani 2024-01-24 10:31:25 +01:00
parent 08f8119a01
commit 9e8f6624fa
3 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1 @@
unsupported configuration: the QEMU binary does not support the ISA panic device

View File

@ -0,0 +1,13 @@
<domain type='qemu'>
<name>guest</name>
<uuid>1ccfd97d-5eb4-478a-bbe6-88d254c16db7</uuid>
<memory>4194304</memory>
<vcpu>4</vcpu>
<os>
<type arch='aarch64' machine='virt'>hvm</type>
</os>
<devices>
<emulator>/usr/bin/qemu-system-aarch64</emulator>
<panic/>
</devices>
</domain>

View File

@ -2485,6 +2485,7 @@ mymain(void)
DO_TEST_CAPS_LATEST("panic"); DO_TEST_CAPS_LATEST("panic");
DO_TEST_CAPS_LATEST("panic-double"); DO_TEST_CAPS_LATEST("panic-double");
DO_TEST_CAPS_LATEST("panic-no-address"); 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_LATEST("pvpanic-pci-x86_64");
DO_TEST_CAPS_ARCH_LATEST("pvpanic-pci-aarch64", "aarch64"); DO_TEST_CAPS_ARCH_LATEST("pvpanic-pci-aarch64", "aarch64");