From cd12b9e8588920c2e6efb41b8fab73cd98fd88de Mon Sep 17 00:00:00 2001 Message-ID: From: Andrea Bolognani Date: Fri, 12 Dec 2025 16:18:24 +0100 Subject: [PATCH] tests: Add firmware-auto-bios-rw This test cases demonstrates that the firmware autoselection process is unable to find a BIOS image that is read/write. This is expected, as BIOS is loaded as ROM and is thus by definition read-only. Signed-off-by: Andrea Bolognani Reviewed-by: Michal Privoznik (cherry picked from commit 07bcd51bcb6a2370f83dadd9f066acebf3157dc2) https://issues.redhat.com/browse/RHEL-82645 Signed-off-by: Andrea Bolognani --- .../firmware-auto-bios-rw.x86_64-latest.err | 1 + .../firmware-auto-bios-rw.x86_64-latest.xml | 35 +++++++++++++++++++ .../qemuxmlconfdata/firmware-auto-bios-rw.xml | 18 ++++++++++ tests/qemuxmlconftest.c | 1 + 4 files changed, 55 insertions(+) create mode 100644 tests/qemuxmlconfdata/firmware-auto-bios-rw.x86_64-latest.err create mode 100644 tests/qemuxmlconfdata/firmware-auto-bios-rw.x86_64-latest.xml create mode 100644 tests/qemuxmlconfdata/firmware-auto-bios-rw.xml diff --git a/tests/qemuxmlconfdata/firmware-auto-bios-rw.x86_64-latest.err b/tests/qemuxmlconfdata/firmware-auto-bios-rw.x86_64-latest.err new file mode 100644 index 0000000000..743fe27a97 --- /dev/null +++ b/tests/qemuxmlconfdata/firmware-auto-bios-rw.x86_64-latest.err @@ -0,0 +1 @@ +operation failed: Unable to find 'bios' firmware that is compatible with the current configuration diff --git a/tests/qemuxmlconfdata/firmware-auto-bios-rw.x86_64-latest.xml b/tests/qemuxmlconfdata/firmware-auto-bios-rw.x86_64-latest.xml new file mode 100644 index 0000000000..b8916c30d9 --- /dev/null +++ b/tests/qemuxmlconfdata/firmware-auto-bios-rw.x86_64-latest.xml @@ -0,0 +1,35 @@ + + guest + 63840878-0deb-4095-97e6-fc444d9bc9fa + 1048576 + 1048576 + 1 + + hvm + + + + + + + + qemu64 + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + + +
+ + + + +