From: Zhuoying Cai <[email protected]> Add test coverage for virtio-net-pci network booting on s390x by including it in the PXE test suite. The test verifies that PXE network booting works correctly with virtio-net-pci devices.
Signed-off-by: Zhuoying Cai <[email protected]> Tested-by: Joshua Daley <[email protected]> Reviewed-by: Matthew Rosato <[email protected]> Reviewed-by: Jared Rossi <[email protected]> Link: https://lore.kernel.org/qemu-devel/[email protected] Signed-off-by: Eric Farman <[email protected]> --- tests/qtest/pxe-test.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/qtest/pxe-test.c b/tests/qtest/pxe-test.c index 5c6415b936..61c92a2df4 100644 --- a/tests/qtest/pxe-test.c +++ b/tests/qtest/pxe-test.c @@ -130,9 +130,20 @@ static bool s390_bios_has_net_ccw(void) return s390_bios_has_string("Network boot starting..."); } +static bool s390_bios_has_net_pci(void) +{ + /* + * Check for a string unique to virtio-net-pci boot support in the bios + * to determine if the binary was built with support for this device. + */ + return s390_bios_has_string("Setup failed for virtio-net-pci"); +} + static testdef_t s390x_tests[] = { { "s390-ccw-virtio", "virtio-net-ccw", .boot_dev_support = s390_bios_has_net_ccw }, + { "s390-ccw-virtio", "virtio-net-pci", + .boot_dev_support = s390_bios_has_net_pci }, { NULL }, }; -- 2.55.0
