test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH v1] test_plans: add vhost-user/virtio-user hotplug_mp test case
@ 2020-03-23 18:03 Yinan
  2020-03-24  6:52 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: Yinan @ 2020-03-23 18:03 UTC (permalink / raw)
  To: dts; +Cc: Wang Yinan

From: Wang Yinan <yinan.wang@intel.com>

Signed-off-by: Wang Yinan <yinan.wang@intel.com>
---
 test_plans/hotplug_mp_test_plan.rst | 72 +++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)

diff --git a/test_plans/hotplug_mp_test_plan.rst b/test_plans/hotplug_mp_test_plan.rst
index db4758b..a69ea6f 100644
--- a/test_plans/hotplug_mp_test_plan.rst
+++ b/test_plans/hotplug_mp_test_plan.rst
@@ -237,3 +237,75 @@ secondary processes fail to detach same device again
 Repeat above attach and detach for 2 times
 
 Quit primary and secondary processes
+
+Test Case: Repeat to attach/detach vhost-user from primary or secondary
+=======================================================================
+Start sample code as primary then secondary::
+
+     ./hotplug_mp --proc-type=auto
+
+Check primary and secondary processes don't have any device::
+
+     example> list
+     list all etherdev
+
+Attach a virtual device from primary or secondary, check primary and
+secondary processes attach the share device successfully::
+
+    example> attach net_vhost0,iface=vhost-net,queues=1,client=0
+    example> list
+    list all etherdev
+    0       net_vhost0
+
+Attach the same virtual device from primary or secondary, check primary and
+secondary processes fail to attach same device again
+
+Detach the virtual device from primary or secondary, check primary and
+secondary processes detach the share device successfully::
+
+    example> detach net_vhost0
+    example> list
+    list all etherdev
+
+Detach the same virtual device from primary or secondary, check primary and
+secondary processes fail to detach same device again
+
+Repeat above attach and detach for 2 times
+
+Quit primary and secondary processes
+
+Test Case: Repeat to attach/detach virtio-user from primary or secondary
+=======================================================================
+Start sample code as primary then secondary::
+
+     ./hotplug_mp --proc-type=auto
+
+Check primary and secondary processes don't have any device::
+
+     example> list
+     list all etherdev
+
+Attach a virtual device from primary or secondary, check primary and
+secondary processes attach the share device successfully::
+
+    example> attach net_virtio_user0,mac=00:01:02:03:04:05,path=/home/yinan/dpdk/vhost-net,packed_vq=1,mrg_rxbuf=1,in_order=0
+    example> list
+    list all etherdev
+    0       net_virtio_user0
+
+Attach the same virtual device from primary or secondary, check primary and
+secondary processes fail to attach same device again
+
+Detach the virtual device from primary or secondary, check primary and
+secondary processes detach the share device successfully::
+
+    example> detach net_virtio_user0
+    example> list
+    list all etherdev
+
+Detach the same virtual device from primary or secondary, check primary and
+secondary processes fail to detach same device again
+
+Repeat above attach and detach for 2 times
+
+Quit primary and secondary processes
\ No newline at end of file
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH v1] test_plans: add vhost-user/virtio-user hotplug_mp test case
  2020-03-23 18:03 [dts] [PATCH v1] test_plans: add vhost-user/virtio-user hotplug_mp test case Yinan
@ 2020-03-24  6:52 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2020-03-24  6:52 UTC (permalink / raw)
  To: Wang, Yinan, dts; +Cc: Wang, Yinan

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yinan
> Sent: Tuesday, March 24, 2020 2:03 AM
> To: dts@dpdk.org
> Cc: Wang, Yinan <yinan.wang@intel.com>
> Subject: [dts] [PATCH v1] test_plans: add vhost-user/virtio-user hotplug_mp
> test case
> 
> From: Wang Yinan <yinan.wang@intel.com>
> 
> Signed-off-by: Wang Yinan <yinan.wang@intel.com>
> ---
>  test_plans/hotplug_mp_test_plan.rst | 72
> +++++++++++++++++++++++++++++
>  1 file changed, 72 insertions(+)
> 
> diff --git a/test_plans/hotplug_mp_test_plan.rst
> b/test_plans/hotplug_mp_test_plan.rst
> index db4758b..a69ea6f 100644
> --- a/test_plans/hotplug_mp_test_plan.rst
> +++ b/test_plans/hotplug_mp_test_plan.rst
> @@ -237,3 +237,75 @@ secondary processes fail to detach same device
> again  Repeat above attach and detach for 2 times
> 
>  Quit primary and secondary processes
> +
> +Test Case: Repeat to attach/detach vhost-user from primary or secondary
> +===============================================================
> ========
> +Start sample code as primary then secondary::
> +
> +     ./hotplug_mp --proc-type=auto
> +
> +Check primary and secondary processes don't have any device::
> +
> +     example> list
> +     list all etherdev
> +
> +Attach a virtual device from primary or secondary, check primary and
> +secondary processes attach the share device successfully::
> +
> +    example> attach net_vhost0,iface=vhost-net,queues=1,client=0
> +    example> list
> +    list all etherdev
> +    0       net_vhost0
> +
> +Attach the same virtual device from primary or secondary, check primary
> +and secondary processes fail to attach same device again
> +
> +Detach the virtual device from primary or secondary, check primary and
> +secondary processes detach the share device successfully::
> +
> +    example> detach net_vhost0
> +    example> list
> +    list all etherdev
> +
> +Detach the same virtual device from primary or secondary, check primary
> +and secondary processes fail to detach same device again
> +
> +Repeat above attach and detach for 2 times
> +
> +Quit primary and secondary processes
> +
> +Test Case: Repeat to attach/detach virtio-user from primary or
> +secondary
> +===============================================================
> ========
> +Start sample code as primary then secondary::
> +
> +     ./hotplug_mp --proc-type=auto
> +
> +Check primary and secondary processes don't have any device::
> +
> +     example> list
> +     list all etherdev
> +
> +Attach a virtual device from primary or secondary, check primary and
> +secondary processes attach the share device successfully::
> +
> +    example> attach
> net_virtio_user0,mac=00:01:02:03:04:05,path=/home/yinan/dpdk/vhost-
> net,packed_vq=1,mrg_rxbuf=1,in_order=0
> +    example> list
> +    list all etherdev
> +    0       net_virtio_user0
> +
> +Attach the same virtual device from primary or secondary, check primary
> +and secondary processes fail to attach same device again
> +
> +Detach the virtual device from primary or secondary, check primary and
> +secondary processes detach the share device successfully::
> +
> +    example> detach net_virtio_user0
> +    example> list
> +    list all etherdev
> +
> +Detach the same virtual device from primary or secondary, check primary
> +and secondary processes fail to detach same device again
> +
> +Repeat above attach and detach for 2 times
> +
> +Quit primary and secondary processes
> \ No newline at end of file
> --
> 2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-24  7:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-23 18:03 [dts] [PATCH v1] test_plans: add vhost-user/virtio-user hotplug_mp test case Yinan
2020-03-24  6:52 ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).