test suite reviews and discussions
 help / color / mirror / Atom feed
From: ChenBo <box.c.chen@intel.com>
To: dts@dpdk.org
Cc: ChenBo <box.c.chen@intel.com>
Subject: [dts] [PATCH V1] tests/fortville_rss_input: adaptation meson build
Date: Wed, 16 Sep 2020 18:14:41 +0800	[thread overview]
Message-ID: <20200916101441.27678-1-box.c.chen@intel.com> (raw)

1.Modification of adaptation meson build.
2.Correct class name

Signed-off-by: ChenBo <box.c.chen@intel.com>
---
 tests/TestSuite_fortville_rss_input.py | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/tests/TestSuite_fortville_rss_input.py b/tests/TestSuite_fortville_rss_input.py
index 8a0c41e..58868bf 100644
--- a/tests/TestSuite_fortville_rss_input.py
+++ b/tests/TestSuite_fortville_rss_input.py
@@ -67,7 +67,7 @@ from test_case import TestCase
 #
 
 
-class TestFortvilleRssGranularityConfig(TestCase):
+class TestFortvilleRssInput(TestCase):
     #
     #
     # Utility methods and other non-test code.
@@ -84,6 +84,7 @@ class TestFortvilleRssGranularityConfig(TestCase):
         ports = self.dut.get_ports(self.nic)
         self.verify(len(ports) >= 1, "Not enough ports available")
         dutPorts = self.dut.get_ports(self.nic)
+        self.dut_ports = dutPorts
         localPort = self.tester.get_local_port(dutPorts[0])
         self.itf = self.tester.get_interface(localPort)
         self.pmdout = PmdOutput(self.dut)
@@ -292,13 +293,13 @@ class TestFortvilleRssGranularityConfig(TestCase):
         """
         Create testpmd command
         """
-        self.dut.send_expect(
-            "./%s/app/testpmd  -c fffff -n %d -- -i --coremask=0xffffe --portmask=0x1 --rxq=4 --txq=4" %
-            (self.target, self.dut.get_memory_channels()), "testpmd> ", 120)
-
+        app_name = self.dut.apps_name['test-pmd']
+        eal_params = self.dut.create_eal_parameters(cores='1S/4C/1T', ports=[self.dut_ports[0]])
+        cmd = app_name + eal_params + '-- -i --portmask=0x1 --rxq=4 --txq=4'
+        self.dut.send_expect(cmd, "testpmd> ", 30)
         self.dut.send_expect("set verbose 8", "testpmd> ")
         self.dut.send_expect("set fwd rxonly", "testpmd> ")
-        self.dut.send_expect("start", "testpmd> ", 120)
+        self.dut.send_expect("start", "testpmd> ", 10)
         time.sleep(2)
 
         res = self.pmdout.wait_link_status_up("all")
-- 
2.17.1


             reply	other threads:[~2020-09-16 10:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-16 10:14 ChenBo [this message]
2020-09-16 10:34 ` Chen, BoX C
2020-09-17  8:11 ` Ma, LihongX
2020-09-23  6:59   ` Tu, Lijuan

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=20200916101441.27678-1-box.c.chen@intel.com \
    --to=box.c.chen@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).