[dts] [PATCH V1 2/2]dpdk_gso_lib: add steps to check iperf data

Xiao Qimai qimaix.xiao at intel.com
Wed Jun 10 07:11:24 CEST 2020


Signed-off-by: Xiao Qimai <qimaix.xiao at intel.com>
---
 tests/TestSuite_dpdk_gso_lib.py | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/tests/TestSuite_dpdk_gso_lib.py b/tests/TestSuite_dpdk_gso_lib.py
index 433869a..e435211 100644
--- a/tests/TestSuite_dpdk_gso_lib.py
+++ b/tests/TestSuite_dpdk_gso_lib.py
@@ -285,6 +285,21 @@ class TestDPDKGsoLib(TestCase):
         self.result_table_print()
         self.output_result = "Iperf throughput is %s" % iperfdata[-1]
         self.logger.info(self.output_result)
+        res_li = iperfdata[-1].strip().split()
+        data = float(res_li[0])
+        unit = res_li[1]
+        if self.nic in ['fortville_spirit']:
+            self.verify(unit == 'Gbits/sec', 'data unit not correct')
+            if self.running_case in ['test_kernel_gso_dpdk', 'test_no_gso_dpdk']:
+                self.verify(data > 8, 'data speed not reach expect')
+            elif self.running_case == 'test_vhost_gso_dpdk_tcp':
+                self.verify(data > 11, 'data speed not reach expect')
+            elif self.running_case == 'test_vhost_gso_dpdk_udp':
+                self.verify(data > 4, 'data speed not reach expect')
+            elif self.running_case in ['test_vhost_gso_with_gre', 'test_vhost_gso_with_vxlan']:
+                self.verify(data > 5, 'data speed not reach expect')
+            elif self.running_case == 'test_vhost_tso_dpdk':
+                self.verify(data > 20, 'data speed not reach expect')
 
     def test_vhost_gso_dpdk_tcp(self):
         """
-- 
1.8.3.1



More information about the dts mailing list