test suite reviews and discussions
 help / color / 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, back to index

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

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox