From: Zhou Jun <junx.w.zhou@intel.com>
To: dts@dpdk.org
Cc: Zhou Jun <junx.w.zhou@intel.com>
Subject: [dts] [PATCH V1] tests/TestSuite_efd:Modify the hard coded appparameter
Date: Thu, 10 Dec 2020 19:29:16 +0800 [thread overview]
Message-ID: <20201210112916.22079-1-junx.w.zhou@intel.com> (raw)
Modify the hard coded app parameter to call the platform interface
Signed-off-by: Zhou Jun <junx.w.zhou@intel.com>
---
tests/TestSuite_efd.py | 23 +++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/tests/TestSuite_efd.py b/tests/TestSuite_efd.py
index 36df999c..787733ca 100644
--- a/tests/TestSuite_efd.py
+++ b/tests/TestSuite_efd.py
@@ -79,7 +79,8 @@ class TestEFD(TestCase):
"""
Run EFD unit test
"""
- self.dut.send_expect("./%s -n 1 -c f" % self.app_test_path, "RTE>>", 60)
+ eal_para = self.dut.create_eal_parameters(cores=[0, 1, 2, 3])
+ self.dut.send_expect("./%s %s" % (self.app_test_path, eal_para), "RTE>>", 60)
out = self.dut.send_expect("efd_autotest", "RTE>>", 120)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -88,7 +89,8 @@ class TestEFD(TestCase):
"""
Run EFD unit perf test
"""
- self.dut.send_expect("./%s -n 1 -c f" % self.app_test_path, "RTE>>", 60)
+ eal_para = self.dut.create_eal_parameters(cores=[0, 1, 2, 3])
+ self.dut.send_expect("./%s %s" % (self.app_test_path, eal_para), "RTE>>", 60)
out = self.dut.send_expect("efd_perf_autotest", "RTE>>", 120)
self.logger.info(out)
self.dut.send_expect("quit", "# ")
@@ -175,8 +177,8 @@ class TestEFD(TestCase):
# extended flow number into etgen module
# output port is calculated from overall ports number
- server_cmd_fmt = "%s -c %s -n %d -w %s -w %s -- -p 0x3 -n %d -f %s"
- node_cmd_fmt = "%s -c %s -n %d --proc-type=secondary -- -n %d"
+ server_cmd_fmt = "%s %s -- -p 0x3 -n %d -f %s"
+ node_cmd_fmt = "%s %s --proc-type=secondary -- -n %d"
socket = self.dut.get_numa_id(self.dut_ports[0])
pcap = os.sep.join([self.output_path, "efd.pcap"])
@@ -195,19 +197,16 @@ class TestEFD(TestCase):
self.verify(len(cores), "Can't find enough cores")
- server_cmd = server_cmd_fmt % (self.server_app, utils.create_mask(cores[0:2]),
- self.dut.get_memory_channels(),
- self.dut.get_port_pci(self.dut_ports[0]),
- self.dut.get_port_pci(self.dut_ports[1]),
- node_num, hex(flow_num))
-
+ eal_para = self.dut.create_eal_parameters(cores=cores[0:2], ports=[0, 1])
+ server_cmd = server_cmd_fmt % (self.server_app, eal_para, node_num, hex(flow_num))
# create table may need few minutes
self.dut.send_expect(server_cmd, "Finished Process Init", timeout=240)
node_sessions = []
for node in range(node_num):
- node_cmd = node_cmd_fmt % (self.node_app, utils.create_mask([cores[2 + node]]),
- self.dut.get_memory_channels(), node)
+
+ eal_para = self.dut.create_eal_parameters(cores=[cores[2 + node]])
+ node_cmd = node_cmd_fmt % (self.node_app, eal_para, node)
node_session = self.dut.new_session(suite="node%d" % node)
node_sessions.append(node_session)
node_session.send_expect(node_cmd, "Finished Process Init", timeout=30)
--
2.17.1
next reply other threads:[~2020-12-10 11:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-10 11:29 Zhou Jun [this message]
2020-12-15 5:55 ` 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=20201210112916.22079-1-junx.w.zhou@intel.com \
--to=junx.w.zhou@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).