tests/qtest/virtio-net: fix hotplug test case
PATCH 1/1 tests/qtest/virtio-net: fix hotplug test case
virtio-net-test has an hotplug testcase that is never executed.
This is because the testcase is attached to virtio-pci interface rather than to virtio-net-pci.
$ QTEST_QEMU_BINARY=./qemu-system-x86_64 tests/qtest/qos-test -l | grep hotplug /x86_64/.../pci-ohci-tests/ohci_pci-test-hotplug /x86_64/.../e1000e/e1000e-tests/hotplug /x86_64/.../virtio-blk-pci/virtio-blk-pci-tests/hotplug /x86_64/.../vhost-user-blk-pci/vhost-user-blk-pci-tests/hotplug /x86_64/.../virtio-rng-pci/virtio-rng-pci-tests/hotplug /x86_64/.../virtio-scsi/virtio-scsi-tests/hotplug /x86_64/.../virtio-serial/virtio-serial-tests/hotplug
With this fix:
$ QTEST_QEMU_BINARY=./qemu-system-x86_64 tests/qtest/qos-test -l | grep hotplug ... /x86_64/.../vhost-user-blk-pci/vhost-user-blk-pci-tests/hotplug /x86_64/.../virtio-net-pci/virtio-net-pci-tests/hotplug /x86_64/.../virtio-rng-pci/virtio-rng-pci-tests/hotplug ... $ QTEST_QEMU_BINARY=./qemu-system-x86_64 tests/qtest/qos-test -p /x86_64/.../virtio-net-pci-tests/hotplug /x86_64/pc/i440FX-pcihost/pci-bus-pc/pci-bus/virtio-net-pci/virtio-net-pci-tests/hotplug: OK
--- tests/qtest/virtio-net-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qtest/virtio-net-test.c +1 -1
@@ -319,7 +319,7 @@ static void register_virtio_net_test(void) .before = virtio_net_test_setup, }; -qos_add_test ("hotplug" ,"virtio-pci" , hotplug, &opts); +qos_add_test ("hotplug" ,"virtio-net-pci" , hotplug, &opts);#ifndef _WIN32qos_add_test ("basic" ,"virtio-net" , send_recv_test, &opts);qos_add_test ("rx_stop_cont" ,"virtio-net" , stop_cont_test, &opts);
Signature · 1 line
2.31.1
Jason Wang
AppliedQuoted 26 lines · Laurent Vivier
virtio-net-test has an hotplug testcase that is never executed.
This is because the testcase is attached to virtio-pci interface rather than to virtio-net-pci.
$ QTEST_QEMU_BINARY=./qemu-system-x86_64 tests/qtest/qos-test -l | grep hotplug /x86_64/.../pci-ohci-tests/ohci_pci-test-hotplug /x86_64/.../e1000e/e1000e-tests/hotplug /x86_64/.../virtio-blk-pci/virtio-blk-pci-tests/hotplug /x86_64/.../vhost-user-blk-pci/vhost-user-blk-pci-tests/hotplug /x86_64/.../virtio-rng-pci/virtio-rng-pci-tests/hotplug /x86_64/.../virtio-scsi/virtio-scsi-tests/hotplug /x86_64/.../virtio-serial/virtio-serial-tests/hotplugWith this fix:
$ QTEST_QEMU_BINARY=./qemu-system-x86_64 tests/qtest/qos-test -l | grep hotplug ... /x86_64/.../vhost-user-blk-pci/vhost-user-blk-pci-tests/hotplug /x86_64/.../virtio-net-pci/virtio-net-pci-tests/hotplug /x86_64/.../virtio-rng-pci/virtio-rng-pci-tests/hotplug ... $ QTEST_QEMU_BINARY=./qemu-system-x86_64 tests/qtest/qos-test -p /x86_64/.../virtio-net-pci-tests/hotplug /x86_64/pc/i440FX-pcihost/pci-bus-pc/pci-bus/virtio-net-pci/virtio-net-pci-tests/hotplug: OK
Quoted 2 lines
Fixes 6ae333f91b99 ("qos-test: virtio-net test node")Signed-off-by Laurent Vivier <[email protected]>
Applied.
Thanks
Quoted 20 lines
--- tests/qtest/virtio-net-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tests/qtest/virtio-net-test.c +1
-2@@ -319,7 +319,7 @@ static void register_virtio_net_test(void) .before = virtio_net_test_setup, }; -qos_add_test ("hotplug" ,"virtio-pci" , hotplug, &opts); +qos_add_test ("hotplug" ,"virtio-net-pci" , hotplug, &opts);#ifndef _WIN32qos_add_test ("basic" ,"virtio-net" , send_recv_test, &opts);qos_add_test ("rx_stop_cont" ,"virtio-net" , stop_cont_test, &opts); --2.31.1
Quoted 37 lines · Laurent Vivier
virtio-net-test has an hotplug testcase that is never executed.
This is because the testcase is attached to virtio-pci interface rather than to virtio-net-pci.
$ QTEST_QEMU_BINARY=./qemu-system-x86_64 tests/qtest/qos-test -l | grep hotplug /x86_64/.../pci-ohci-tests/ohci_pci-test-hotplug /x86_64/.../e1000e/e1000e-tests/hotplug /x86_64/.../virtio-blk-pci/virtio-blk-pci-tests/hotplug /x86_64/.../vhost-user-blk-pci/vhost-user-blk-pci-tests/hotplug /x86_64/.../virtio-rng-pci/virtio-rng-pci-tests/hotplug /x86_64/.../virtio-scsi/virtio-scsi-tests/hotplug /x86_64/.../virtio-serial/virtio-serial-tests/hotplugWith this fix:
$ QTEST_QEMU_BINARY=./qemu-system-x86_64 tests/qtest/qos-test -l | grep hotplug ... /x86_64/.../vhost-user-blk-pci/vhost-user-blk-pci-tests/hotplug /x86_64/.../virtio-net-pci/virtio-net-pci-tests/hotplug /x86_64/.../virtio-rng-pci/virtio-rng-pci-tests/hotplug ... $ QTEST_QEMU_BINARY=./qemu-system-x86_64 tests/qtest/qos-test -p /x86_64/.../virtio-net-pci-tests/hotplug /x86_64/pc/i440FX-pcihost/pci-bus-pc/pci-bus/virtio-net-pci/virtio-net-pci-tests/hotplug: OKFixes 6ae333f91b99 ("qos-test: virtio-net test node")Signed-off-by Laurent Vivier <[email protected]>--- tests/qtest/virtio-net-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tests/qtest/virtio-net-test.c +0
-0
tests/qtest/virtio-net-test.c static void register_virtio_net_test(void) · line 325
Quoted 8 lines
tests/qtest/virtio-net-test.c +1
-1@@ -319,7 +319,7 @@ static void register_virtio_net_test(void) .before = virtio_net_test_setup, }; -qos_add_test ("hotplug" ,"virtio-pci" , hotplug, &opts); +qos_add_test ("hotplug" ,"virtio-net-pci" , hotplug, &opts);#ifndef _WIN32qos_add_test ("basic" ,"virtio-net" , send_recv_test, &opts);qos_add_test ("rx_stop_cont" ,"virtio-net" , stop_cont_test, &opts);
Laurent Vivier
AppliedLe 08/11/2021 à 18:12, Thomas Huth a écrit :
Quoted 32 lines · Laurent Vivier
Quoted 31 lines
virtio-net-test has an hotplug testcase that is never executed.
This is because the testcase is attached to virtio-pci interface rather than to virtio-net-pci.
$ QTEST_QEMU_BINARY=./qemu-system-x86_64 tests/qtest/qos-test -l | grep hotplug /x86_64/.../pci-ohci-tests/ohci_pci-test-hotplug /x86_64/.../e1000e/e1000e-tests/hotplug /x86_64/.../virtio-blk-pci/virtio-blk-pci-tests/hotplug /x86_64/.../vhost-user-blk-pci/vhost-user-blk-pci-tests/hotplug /x86_64/.../virtio-rng-pci/virtio-rng-pci-tests/hotplug /x86_64/.../virtio-scsi/virtio-scsi-tests/hotplug /x86_64/.../virtio-serial/virtio-serial-tests/hotplugWith this fix:
$ QTEST_QEMU_BINARY=./qemu-system-x86_64 tests/qtest/qos-test -l | grep hotplug ... /x86_64/.../vhost-user-blk-pci/vhost-user-blk-pci-tests/hotplug /x86_64/.../virtio-net-pci/virtio-net-pci-tests/hotplug /x86_64/.../virtio-rng-pci/virtio-rng-pci-tests/hotplug ... $ QTEST_QEMU_BINARY=./qemu-system-x86_64 tests/qtest/qos-test -p /x86_64/.../virtio-net-pci-tests/hotplug /x86_64/pc/i440FX-pcihost/pci-bus-pc/pci-bus/virtio-net-pci/virtio-net-pci-tests/hotplug: OKFixes 6ae333f91b99 ("qos-test: virtio-net test node")Signed-off-by Laurent Vivier <[email protected]>---
tests/qtest/virtio-net-test.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 17 lines
tests/qtest/virtio-net-test.c static void register_virtio_net_test(void) · line 325
Quoted 13 lines
tests/qtest/virtio-net-test.c +1
-1@@ -319,7 +319,7 @@ static void register_virtio_net_test(void) .before = virtio_net_test_setup, }; - qos_add_test("hotplug", "virtio-pci", hotplug, &opts); + qos_add_test("hotplug", "virtio-net-pci", hotplug, &opts); #ifndef _WIN32 qos_add_test("basic", "virtio-net", send_recv_test, &opts); qos_add_test("rx_stop_cont", "virtio-net", stop_cont_test, &opts);Acked-by Thomas Huth <[email protected]>
Applied to my trivial-patches branch.
Thanks,
Laurent