@samitouri / QOSamiQemu / commits / 98c93dfec1

tests/qtest: Add s390x PCI boot test to cdrom-test.c

Add a rudimentary test for s390x IPL to verify that a guest may boot using virtio-blk-pci device. Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Jared Rossi <jrossi@linux.ibm.com> Message-ID: <20260309003601.242634-16-jrossi@linux.ibm.com> Signed-off-by: Thomas Huth <thuth@redhat.com>

Jared Rossi committed Mar 8, 2026 at 20:36 UTC 98c93dfec1362463ce70fc577fb5de0526d3de05
1 file changed +7
tests/qtest/cdrom-test.c
+7
@@ -246,6 +246,13 @@ static void add_s390x_tests(void)
246 "-drive if=none,id=d2,media=cdrom,file=",
247 test_cdboot);
248 }
249 + if (qtest_has_device("virtio-blk-pci")) {
250 + qtest_add_data_func("cdrom/boot/pci-bus-with-bootindex",
251 + "-device virtio-scsi -device virtio-serial "
252 + "-device virtio-blk-pci,drive=d1,bootindex=1 "
253 + "-drive if=none,id=d1,media=cdrom,file=",
254 + test_cdboot);
255 + }
256 }
257
258 int main(int argc, char **argv)