test suite reviews and discussions
 help / color / mirror / Atom feed
From: Xiao Qimai <qimaix.xiao@intel.com>
To: dts@dpdk.org
Cc: Xiao Qimai <qimaix.xiao@intel.com>
Subject: [dts] [PATCH V1]tests/TestSuite_unit_tests_pmd_perf: get corelist depends on numa node id
Date: Fri,  6 Mar 2020 15:45:06 +0800	[thread overview]
Message-ID: <1583480706-17321-1-git-send-email-qimaix.xiao@intel.com> (raw)

*. 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..a06e812 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)
         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)
         print((self.table_header))
 
         for mode in self.rxtx_modes:
-- 
1.8.3.1


                 reply	other threads:[~2020-03-06  7:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1583480706-17321-1-git-send-email-qimaix.xiao@intel.com \
    --to=qimaix.xiao@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).