test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Xiao, QimaiX" <qimaix.xiao@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Xiao, QimaiX" <qimaix.xiao@intel.com>
Subject: Re: [dts] [PATCH V2]tests/TestSuite_unit_tests_pmd_perf: get corelist	depends on numa node id
Date: Fri, 13 Mar 2020 06:29:59 +0000	[thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBEC72A@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1583484553-21817-1-git-send-email-qimaix.xiao@intel.com>

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai
> Sent: Friday, March 6, 2020 4:49 PM
> To: dts@dpdk.org
> Cc: Xiao, QimaiX <qimaix.xiao@intel.com>
> Subject: [dts] [PATCH V2]tests/TestSuite_unit_tests_pmd_perf: get corelist
> depends on numa node id
> 
> *. 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


      reply	other threads:[~2020-03-13  6:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-06  8:49 Xiao Qimai
2020-03-13  6:29 ` Tu, Lijuan [this message]

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=8CE3E05A3F976642AAB0F4675D0AD20E0BBEC72A@SHSMSX101.ccr.corp.intel.com \
    --to=lijuan.tu@intel.com \
    --cc=dts@dpdk.org \
    --cc=qimaix.xiao@intel.com \
    /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).