diff options
author | Thomas Huth <thuth@redhat.com> | 2017-08-11 07:57:56 +0200 |
---|---|---|
committer | Cornelia Huck <cohuck@redhat.com> | 2017-08-30 18:23:25 +0200 |
commit | b1b2feac9432869a129b5958cd697d2870ffcc6b (patch) | |
tree | e1843370e1dd11e0620bac499e17591cb5a14131 /tests/pxe-test.c | |
parent | 83898cce62ba25a473af6a164388105994481e9c (diff) | |
download | qemu-b1b2feac9432869a129b5958cd697d2870ffcc6b.zip qemu-b1b2feac9432869a129b5958cd697d2870ffcc6b.tar.gz qemu-b1b2feac9432869a129b5958cd697d2870ffcc6b.tar.bz2 |
tests/pxe: Check virtio-net-ccw on s390x
Now that we've got a firmware that can do TFTP booting on s390x (i.e.
the pc-bios/s390-netboot.img), we can enable the PXE tester for this
architecture, too.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <1502431076-22849-3-git-send-email-thuth@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'tests/pxe-test.c')
-rw-r--r-- | tests/pxe-test.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pxe-test.c b/tests/pxe-test.c index cf6e225..0d70afc 100644 --- a/tests/pxe-test.c +++ b/tests/pxe-test.c @@ -51,6 +51,11 @@ static void test_pxe_spapr_vlan(void) test_pxe_one("-device spapr-vlan,netdev=" NETNAME, true); } +static void test_pxe_virtio_ccw(void) +{ + test_pxe_one("-device virtio-net-ccw,bootindex=1,netdev=" NETNAME, false); +} + int main(int argc, char *argv[]) { int ret; @@ -68,6 +73,8 @@ int main(int argc, char *argv[]) } else if (strcmp(arch, "ppc64") == 0) { qtest_add_func("pxe/virtio", test_pxe_virtio_pci); qtest_add_func("pxe/spapr-vlan", test_pxe_spapr_vlan); + } else if (g_str_equal(arch, "s390x")) { + qtest_add_func("pxe/virtio-ccw", test_pxe_virtio_ccw); } ret = g_test_run(); boot_sector_cleanup(disk); |