test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/pvp_vhost_user_reconnect: modify iperf test case expected value
@ 2021-04-09  2:44 Ling Wei
  0 siblings, 0 replies; 7+ messages in thread
From: Ling Wei @ 2021-04-09  2:44 UTC (permalink / raw)
  To: dts; +Cc: Ling Wei

Because of repeat iperf test on FVL-40g nic, the result 
is unstable, so use 20Gb/s as check value.

Signed-off-by: Ling Wei <weix.ling@intel.com>
---
 tests/TestSuite_pvp_vhost_user_reconnect.py | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/tests/TestSuite_pvp_vhost_user_reconnect.py b/tests/TestSuite_pvp_vhost_user_reconnect.py
index bd1f3937..4be19c5a 100644
--- a/tests/TestSuite_pvp_vhost_user_reconnect.py
+++ b/tests/TestSuite_pvp_vhost_user_reconnect.py
@@ -174,7 +174,7 @@ class TestPVPVhostUserReconnect(TestCase):
         if packed is True:
             setting_args = "%s,packed=on" % setting_args
         for i in range(self.vm_num):
-            vm_info = VM(self.dut, 'vm%d' % i, 'vhost_sample')
+            vm_info = VM(self.dut, 'vm%d' % i, 'vhost_sample_copy')
             vm_params = {}
             vm_params['driver'] = 'vhost-user'
             vm_params['opt_path'] = './vhost-net%d' % (i)
@@ -391,6 +391,8 @@ class TestPVPVhostUserReconnect(TestCase):
         self.config_vm_intf()
         self.start_iperf()
         self.before_data = self.iperf_result_verify(vm_cycle, 'before reconnet')
+        # Because of repeat iperf test on FVL-40g nic, the result is unstable, so use 15Gb/s as check value.
+        self.check_data = 15.000
 
         vm_cycle = 1
         # reconnet from vhost
@@ -400,7 +402,8 @@ class TestPVPVhostUserReconnect(TestCase):
             self.launch_testpmd_as_vhost_user_with_no_pci()
             self.start_iperf()
             self.reconnect_data = self.iperf_result_verify(vm_cycle, 'reconnet from vhost')
-            self.check_reconnect_perf()
+            self.verify(self.reconnect_data >= self.check_data,
+                        'iperf test result lower than {0} after reconnect from vhost'.format(self.check_data))
 
         # reconnet from VM
         self.logger.info('now reconnect from vm')
@@ -413,7 +416,8 @@ class TestPVPVhostUserReconnect(TestCase):
             self.config_vm_intf()
             self.start_iperf()
             self.reconnect_data = self.iperf_result_verify(vm_cycle, 'reconnet from vm')
-            self.check_reconnect_perf()
+            self.verify(self.reconnect_data > self.check_data,
+                        'iperf test result lower than {0} after reconnect from vm'.format(self.check_data))
         self.result_table_print()
 
     def test_perf_packed_ring_reconnet_one_vm(self):
@@ -494,6 +498,8 @@ class TestPVPVhostUserReconnect(TestCase):
         self.config_vm_intf()
         self.start_iperf()
         self.before_data = self.iperf_result_verify(vm_cycle, 'before reconnet')
+        # Because of repeat iperf test on FVL-40g nic, the result is unstable, so use 15Gb/s as check value.
+        self.check_data = 15.000
 
         vm_cycle = 1
         # reconnet from vhost
@@ -503,7 +509,8 @@ class TestPVPVhostUserReconnect(TestCase):
             self.launch_testpmd_as_vhost_user_with_no_pci()
             self.start_iperf()
             self.reconnect_data = self.iperf_result_verify(vm_cycle, 'reconnet from vhost')
-            self.check_reconnect_perf()
+            self.verify(self.reconnect_data > self.check_data,
+                        'iperf test result lower than {0} after reconnect from vhost'.format(self.check_data))
 
         # reconnet from VM
         self.logger.info('now reconnect from vm')
@@ -515,7 +522,8 @@ class TestPVPVhostUserReconnect(TestCase):
             self.config_vm_intf()
             self.start_iperf()
             self.reconnect_data = self.iperf_result_verify(vm_cycle, 'reconnet from vm')
-            self.check_reconnect_perf()
+            self.verify(self.reconnect_data > self.check_data,
+                        'iperf test result lower than {0} after recconnect from vm'.format(self.check_data))
         self.result_table_print()
 
     def tear_down(self):
-- 
2.25.1


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

* Re: [dts] [PATCH V1] tests/pvp_vhost_user_reconnect: modify iperf test case expected value
  2021-04-12  2:48   ` Wang, Yinan
@ 2021-04-12  5:34     ` Tu, Lijuan
  0 siblings, 0 replies; 7+ messages in thread
From: Tu, Lijuan @ 2021-04-12  5:34 UTC (permalink / raw)
  To: Wang, Yinan, Ling, WeiX, dts



> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Wang, Yinan
> Sent: 2021年4月12日 10:48
> To: Ling, WeiX <weix.ling@intel.com>; dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] tests/pvp_vhost_user_reconnect: modify iperf test
> case expected value
> 
> Acked-by: Wang, Yinan <yinan.wang@intel.com>
> 
> > -----Original Message-----
> > From: dts <dts-bounces@dpdk.org> On Behalf Of Ling, WeiX
> > Sent: 2021?4?9? 10:51
> > To: dts@dpdk.org
> > Subject: Re: [dts] [PATCH V1] tests/pvp_vhost_user_reconnect: modify
> > iperf test case expected value
> >
> > > -----Original Message-----
> > > From: Ling, WeiX <weix.ling@intel.com>
> > > Sent: Friday, April 9, 2021 10:48 AM
> > > To: dts@dpdk.org
> > > Cc: Ling, WeiX <weix.ling@intel.com>
> > > Subject: [dts][PATCH V1] tests/pvp_vhost_user_reconnect: modify
> > > iperf
> > test
> > > case expected value
> > >
> > Tested-by: Wei Ling <weix.ling@intel.com>

Applied

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

* Re: [dts] [PATCH V1] tests/pvp_vhost_user_reconnect: modify iperf test case expected value
  2021-04-09  2:51 ` Ling, WeiX
@ 2021-04-12  2:48   ` Wang, Yinan
  2021-04-12  5:34     ` Tu, Lijuan
  0 siblings, 1 reply; 7+ messages in thread
From: Wang, Yinan @ 2021-04-12  2:48 UTC (permalink / raw)
  To: Ling, WeiX, dts

Acked-by: Wang, Yinan <yinan.wang@intel.com>

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Ling, WeiX
> Sent: 2021?4?9? 10:51
> To: dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] tests/pvp_vhost_user_reconnect: modify iperf
> test case expected value
> 
> > -----Original Message-----
> > From: Ling, WeiX <weix.ling@intel.com>
> > Sent: Friday, April 9, 2021 10:48 AM
> > To: dts@dpdk.org
> > Cc: Ling, WeiX <weix.ling@intel.com>
> > Subject: [dts][PATCH V1] tests/pvp_vhost_user_reconnect: modify iperf
> test
> > case expected value
> >
> Tested-by: Wei Ling <weix.ling@intel.com>

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

* Re: [dts] [PATCH V1] tests/pvp_vhost_user_reconnect: modify iperf test case expected value
  2021-04-09  2:47 Ling Wei
@ 2021-04-09  2:51 ` Ling, WeiX
  2021-04-12  2:48   ` Wang, Yinan
  0 siblings, 1 reply; 7+ messages in thread
From: Ling, WeiX @ 2021-04-09  2:51 UTC (permalink / raw)
  To: dts

[-- Attachment #1: Type: text/plain, Size: 320 bytes --]

> -----Original Message-----
> From: Ling, WeiX <weix.ling@intel.com>
> Sent: Friday, April 9, 2021 10:48 AM
> To: dts@dpdk.org
> Cc: Ling, WeiX <weix.ling@intel.com>
> Subject: [dts][PATCH V1] tests/pvp_vhost_user_reconnect: modify iperf test
> case expected value
> 
Tested-by: Wei Ling <weix.ling@intel.com>

[-- Attachment #2: TestPVPVhostUserReconnect.log --]
[-- Type: application/octet-stream, Size: 647258 bytes --]

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

* [dts] [PATCH V1] tests/pvp_vhost_user_reconnect: modify iperf test case expected value
@ 2021-04-09  2:47 Ling Wei
  2021-04-09  2:51 ` Ling, WeiX
  0 siblings, 1 reply; 7+ messages in thread
From: Ling Wei @ 2021-04-09  2:47 UTC (permalink / raw)
  To: dts; +Cc: Ling Wei

Because of repeat iperf test on FVL-40g nic, the result 
is unstable, so use 15Gb/s as check value.

Signed-off-by: Ling Wei <weix.ling@intel.com>
---
 tests/TestSuite_pvp_vhost_user_reconnect.py | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/tests/TestSuite_pvp_vhost_user_reconnect.py b/tests/TestSuite_pvp_vhost_user_reconnect.py
index bd1f3937..4be19c5a 100644
--- a/tests/TestSuite_pvp_vhost_user_reconnect.py
+++ b/tests/TestSuite_pvp_vhost_user_reconnect.py
@@ -174,7 +174,7 @@ class TestPVPVhostUserReconnect(TestCase):
         if packed is True:
             setting_args = "%s,packed=on" % setting_args
         for i in range(self.vm_num):
-            vm_info = VM(self.dut, 'vm%d' % i, 'vhost_sample')
+            vm_info = VM(self.dut, 'vm%d' % i, 'vhost_sample_copy')
             vm_params = {}
             vm_params['driver'] = 'vhost-user'
             vm_params['opt_path'] = './vhost-net%d' % (i)
@@ -391,6 +391,8 @@ class TestPVPVhostUserReconnect(TestCase):
         self.config_vm_intf()
         self.start_iperf()
         self.before_data = self.iperf_result_verify(vm_cycle, 'before reconnet')
+        # Because of repeat iperf test on FVL-40g nic, the result is unstable, so use 15Gb/s as check value.
+        self.check_data = 15.000
 
         vm_cycle = 1
         # reconnet from vhost
@@ -400,7 +402,8 @@ class TestPVPVhostUserReconnect(TestCase):
             self.launch_testpmd_as_vhost_user_with_no_pci()
             self.start_iperf()
             self.reconnect_data = self.iperf_result_verify(vm_cycle, 'reconnet from vhost')
-            self.check_reconnect_perf()
+            self.verify(self.reconnect_data >= self.check_data,
+                        'iperf test result lower than {0} after reconnect from vhost'.format(self.check_data))
 
         # reconnet from VM
         self.logger.info('now reconnect from vm')
@@ -413,7 +416,8 @@ class TestPVPVhostUserReconnect(TestCase):
             self.config_vm_intf()
             self.start_iperf()
             self.reconnect_data = self.iperf_result_verify(vm_cycle, 'reconnet from vm')
-            self.check_reconnect_perf()
+            self.verify(self.reconnect_data > self.check_data,
+                        'iperf test result lower than {0} after reconnect from vm'.format(self.check_data))
         self.result_table_print()
 
     def test_perf_packed_ring_reconnet_one_vm(self):
@@ -494,6 +498,8 @@ class TestPVPVhostUserReconnect(TestCase):
         self.config_vm_intf()
         self.start_iperf()
         self.before_data = self.iperf_result_verify(vm_cycle, 'before reconnet')
+        # Because of repeat iperf test on FVL-40g nic, the result is unstable, so use 15Gb/s as check value.
+        self.check_data = 15.000
 
         vm_cycle = 1
         # reconnet from vhost
@@ -503,7 +509,8 @@ class TestPVPVhostUserReconnect(TestCase):
             self.launch_testpmd_as_vhost_user_with_no_pci()
             self.start_iperf()
             self.reconnect_data = self.iperf_result_verify(vm_cycle, 'reconnet from vhost')
-            self.check_reconnect_perf()
+            self.verify(self.reconnect_data > self.check_data,
+                        'iperf test result lower than {0} after reconnect from vhost'.format(self.check_data))
 
         # reconnet from VM
         self.logger.info('now reconnect from vm')
@@ -515,7 +522,8 @@ class TestPVPVhostUserReconnect(TestCase):
             self.config_vm_intf()
             self.start_iperf()
             self.reconnect_data = self.iperf_result_verify(vm_cycle, 'reconnet from vm')
-            self.check_reconnect_perf()
+            self.verify(self.reconnect_data > self.check_data,
+                        'iperf test result lower than {0} after recconnect from vm'.format(self.check_data))
         self.result_table_print()
 
     def tear_down(self):
-- 
2.25.1


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

* Re: [dts] [PATCH V1] tests/pvp_vhost_user_reconnect: modify iperf test case expected value
  2021-04-07  9:02 Ling Wei
@ 2021-04-07  9:07 ` Ling, WeiX
  0 siblings, 0 replies; 7+ messages in thread
From: Ling, WeiX @ 2021-04-07  9:07 UTC (permalink / raw)
  To: dts

[-- Attachment #1: Type: text/plain, Size: 323 bytes --]

> -----Original Message-----
> From: Ling, WeiX <weix.ling@intel.com>
> Sent: Wednesday, April 7, 2021 05:03 PM
> To: dts@dpdk.org
> Cc: Ling, WeiX <weix.ling@intel.com>
> Subject: [dts][PATCH V1] tests/pvp_vhost_user_reconnect: modify iperf test
> case expected value
> 
Tested-by: Wei Ling <weix.ling@intel.com>

[-- Attachment #2: TestPVPVhostUserReconnect.log --]
[-- Type: application/octet-stream, Size: 647258 bytes --]

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

* [dts] [PATCH V1] tests/pvp_vhost_user_reconnect: modify iperf test case expected value
@ 2021-04-07  9:02 Ling Wei
  2021-04-07  9:07 ` Ling, WeiX
  0 siblings, 1 reply; 7+ messages in thread
From: Ling Wei @ 2021-04-07  9:02 UTC (permalink / raw)
  To: dts; +Cc: Ling Wei

Because of repeat iperf test on FVL-40g nic, the result 
is unstable, so use 20Gb/s as check value.

Signed-off-by: Ling Wei <weix.ling@intel.com>
---
 tests/TestSuite_pvp_vhost_user_reconnect.py | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/tests/TestSuite_pvp_vhost_user_reconnect.py b/tests/TestSuite_pvp_vhost_user_reconnect.py
index bd1f3937..f9843ebe 100644
--- a/tests/TestSuite_pvp_vhost_user_reconnect.py
+++ b/tests/TestSuite_pvp_vhost_user_reconnect.py
@@ -174,7 +174,7 @@ class TestPVPVhostUserReconnect(TestCase):
         if packed is True:
             setting_args = "%s,packed=on" % setting_args
         for i in range(self.vm_num):
-            vm_info = VM(self.dut, 'vm%d' % i, 'vhost_sample')
+            vm_info = VM(self.dut, 'vm%d' % i, 'vhost_sample_copy')
             vm_params = {}
             vm_params['driver'] = 'vhost-user'
             vm_params['opt_path'] = './vhost-net%d' % (i)
@@ -391,6 +391,8 @@ class TestPVPVhostUserReconnect(TestCase):
         self.config_vm_intf()
         self.start_iperf()
         self.before_data = self.iperf_result_verify(vm_cycle, 'before reconnet')
+        # Because of repeat iperf test on FVL-40g nic, the result is unstable, so use 20Gb/s as check value.
+        self.check_data = 20.000
 
         vm_cycle = 1
         # reconnet from vhost
@@ -400,7 +402,8 @@ class TestPVPVhostUserReconnect(TestCase):
             self.launch_testpmd_as_vhost_user_with_no_pci()
             self.start_iperf()
             self.reconnect_data = self.iperf_result_verify(vm_cycle, 'reconnet from vhost')
-            self.check_reconnect_perf()
+            self.verify(self.reconnect_data >= self.check_data,
+                        'iperf test result lower than {0} after recone'.format(self.check_data))
 
         # reconnet from VM
         self.logger.info('now reconnect from vm')
@@ -413,7 +416,8 @@ class TestPVPVhostUserReconnect(TestCase):
             self.config_vm_intf()
             self.start_iperf()
             self.reconnect_data = self.iperf_result_verify(vm_cycle, 'reconnet from vm')
-            self.check_reconnect_perf()
+            self.verify(self.reconnect_data > self.check_data,
+                        'iperf test result lower than {0} after recone'.format(self.check_data))
         self.result_table_print()
 
     def test_perf_packed_ring_reconnet_one_vm(self):
@@ -494,6 +498,8 @@ class TestPVPVhostUserReconnect(TestCase):
         self.config_vm_intf()
         self.start_iperf()
         self.before_data = self.iperf_result_verify(vm_cycle, 'before reconnet')
+        # Because of repeat iperf test on FVL-40g nic, the result is unstable, so use 20Gb/s as check value.
+        self.check_data = 20.000
 
         vm_cycle = 1
         # reconnet from vhost
@@ -503,7 +509,8 @@ class TestPVPVhostUserReconnect(TestCase):
             self.launch_testpmd_as_vhost_user_with_no_pci()
             self.start_iperf()
             self.reconnect_data = self.iperf_result_verify(vm_cycle, 'reconnet from vhost')
-            self.check_reconnect_perf()
+            self.verify(self.reconnect_data > self.check_data,
+                        'iperf test result lower than {0} after recone'.format(self.check_data))
 
         # reconnet from VM
         self.logger.info('now reconnect from vm')
@@ -515,7 +522,8 @@ class TestPVPVhostUserReconnect(TestCase):
             self.config_vm_intf()
             self.start_iperf()
             self.reconnect_data = self.iperf_result_verify(vm_cycle, 'reconnet from vm')
-            self.check_reconnect_perf()
+            self.verify(self.reconnect_data > self.check_data,
+                        'iperf test result lower than {0} after recone'.format(self.check_data))
         self.result_table_print()
 
     def tear_down(self):
-- 
2.25.1


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

end of thread, other threads:[~2021-04-12  5:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-09  2:44 [dts] [PATCH V1] tests/pvp_vhost_user_reconnect: modify iperf test case expected value Ling Wei
  -- strict thread matches above, loose matches on Subject: below --
2021-04-09  2:47 Ling Wei
2021-04-09  2:51 ` Ling, WeiX
2021-04-12  2:48   ` Wang, Yinan
2021-04-12  5:34     ` Tu, Lijuan
2021-04-07  9:02 Ling Wei
2021-04-07  9:07 ` Ling, WeiX

test suite reviews and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://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/ https://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


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