test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V2]tests/TestSuite_unit_tests_pmd_perf: get corelist depends on numa node id
@ 2020-03-06  8:49 Xiao Qimai
  2020-03-13  6:29 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: Xiao Qimai @ 2020-03-06  8:49 UTC (permalink / raw)
  To: dts; +Cc: Xiao Qimai

*. get corelist depends on numa node id

Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
---
 tests/TestSuite_unit_tests_pmd_perf.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/TestSuite_unit_tests_pmd_perf.py b/tests/TestSuite_unit_tests_pmd_perf.py
index 2c932bb..a01cf4e 100644
--- a/tests/TestSuite_unit_tests_pmd_perf.py
+++ b/tests/TestSuite_unit_tests_pmd_perf.py
@@ -78,6 +78,8 @@ class TestUnitTestsPmdPerf(TestCase):
         self.dut.build_install_dpdk(self.target)
         out = self.dut.build_dpdk_apps('./app/test/')
         self.verify('make: Leaving directory' in out, "Compilation failed")
+        socket_id = self.dut.ports_info[0]['port'].socket
+        self.cores = self.dut.get_core_list(config='1S/4C/1T', socket=socket_id)
 
     def set_up(self):
         """
@@ -90,8 +92,7 @@ class TestUnitTestsPmdPerf(TestCase):
         Run pmd stream control mode burst test case.
         """
 
-        socket_id = self.dut.ports_info[0]['port'].socket
-        eal_params = self.dut.create_eal_parameters(socket=socket_id)
+        eal_params = self.dut.create_eal_parameters(cores=self.cores, ports=[0,1])
         self.dut.send_expect("./app/test/test %s" % (eal_params), "R.*T.*E.*>.*>", 60)
         for mode in self.burst_ctlmodes:
             self.dut.send_expect("set_rxtx_sc %s" % mode, "RTE>>", 10)
@@ -112,8 +113,7 @@ class TestUnitTestsPmdPerf(TestCase):
         self.table_header = ['Mode']
         self.table_header += self.anchors
         self.result_table_create(self.table_header)
-        socket_id = self.dut.ports_info[0]['port'].socket
-        eal_params = self.dut.create_eal_parameters(socket=socket_id)
+        eal_params = self.dut.create_eal_parameters(cores=self.cores, ports=[0,1])
         print((self.table_header))
 
         for mode in self.rxtx_modes:
-- 
1.8.3.1


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

end of thread, other threads:[~2020-03-13  6:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-06  8:49 [dts] [PATCH V2]tests/TestSuite_unit_tests_pmd_perf: get corelist depends on numa node id Xiao Qimai
2020-03-13  6:29 ` 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).