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-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
* [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
* [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

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-07  9:02 [dts] [PATCH V1] tests/pvp_vhost_user_reconnect: modify iperf test case expected value Ling Wei
2021-04-07  9:07 ` Ling, WeiX
2021-04-09  2:44 Ling Wei
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

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).