* [dts] [PATCH V1] tests/TestSuite_external_memory:Modify the hard coded appparameter
@ 2020-12-10 11:30 Zhou Jun
2020-12-15 5:55 ` Tu, Lijuan
0 siblings, 1 reply; 2+ messages in thread
From: Zhou Jun @ 2020-12-10 11:30 UTC (permalink / raw)
To: dts; +Cc: Zhou Jun
Modify the hard coded app parameter to call the platform interface
Signed-off-by: Zhou Jun <junx.w.zhou@intel.com>
---
tests/TestSuite_external_memory.py | 27 +++++++++++++++------------
1 file changed, 15 insertions(+), 12 deletions(-)
diff --git a/tests/TestSuite_external_memory.py b/tests/TestSuite_external_memory.py
index f899ae74..53522a79 100644
--- a/tests/TestSuite_external_memory.py
+++ b/tests/TestSuite_external_memory.py
@@ -46,11 +46,9 @@ class TestExternalMemory(TestCase):
"""
Run at the start of each test suite.
"""
-
self.dut_ports = self.dut.get_ports(self.nic)
self.verify(len(self.dut_ports) >= 2, "Insufficient ports")
- cores = self.dut.get_core_list("1S/4C/1T")
- self.coremask = utils.create_mask(cores)
+
self.app_testpmd_path = self.dut.apps_name['test-pmd']
def set_up(self):
@@ -93,8 +91,9 @@ class TestExternalMemory(TestCase):
Verifier IGB_UIO and anonymous memory allocation
"""
self.insmod_modprobe(modename="igb_uio")
-
- cmd = "./%s -c %s -n 4 -- --mp-alloc=xmem -i" % (self.app_testpmd_path, self.coremask)
+ self.eal_para = self.dut.create_eal_parameters(cores="1S/4C/1T")
+ self.dut.send_expect(r'./%s %s -- --mp-alloc=xmem -i'
+ % (self.app_testpmd_path, self.eal_para), "link state change event", 60)
self.dut.send_expect(cmd,"testpmd>",60)
self.verifier_result()
@@ -104,9 +103,9 @@ class TestExternalMemory(TestCase):
Verifier IGB_UIO and anonymous hugepage memory allocation
"""
self.insmod_modprobe(modename="igb_uio")
- cmd = "./%s -c %s -n 4 -- --mp-alloc=xmemhuge -i" % (self.app_testpmd_path, self.coremask)
-
- self.dut.send_expect(cmd,"testpmd>",60)
+ self.eal_para = self.dut.create_eal_parameters(cores="1S/4C/1T")
+ self.dut.send_expect(r'./%s %s -- --mp-alloc=xmemhuge -i'
+ % (self.app_testpmd_path, self.eal_para), "link state change event", 60)
self.verifier_result()
def test_VFIO_PCI_xmem(self):
@@ -114,8 +113,10 @@ class TestExternalMemory(TestCase):
Verifier VFIO_PCI and anonymous memory allocation
"""
self.insmod_modprobe(modename="vfio-pci")
- cmd = "./%s -c %s -n 4 -- --mp-alloc=xmem -i" % (self.app_testpmd_path, self.coremask)
- self.dut.send_expect(cmd,"testpmd>",60)
+
+ self.eal_para = self.dut.create_eal_parameters(cores="1S/4C/1T")
+ self.dut.send_expect(r'./%s %s -- --mp-alloc=xmem -i'
+ % (self.app_testpmd_path, self.eal_para),"testpmd>",60)
self.verifier_result()
@@ -124,8 +125,10 @@ class TestExternalMemory(TestCase):
Verifier VFIO and anonymous hugepage memory allocation
"""
self.insmod_modprobe(modename="vfio-pci")
- cmd = "./%s -c %s -n 4 -- --mp-alloc=xmemhuge -i" % (self.app_testpmd_path, self.coremask)
- self.dut.send_expect(cmd,"testpmd>",60)
+
+ self.eal_para = self.dut.create_eal_parameters(cores="1S/4C/1T")
+ self.dut.send_expect(r'./%s %s -- --mp-alloc=xmemhuge -i'
+ % (self.app_testpmd_path, self.eal_para),"testpmd>",60)
self.verifier_result()
--
2.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH V1] tests/TestSuite_external_memory:Modify the hard coded appparameter
2020-12-10 11:30 [dts] [PATCH V1] tests/TestSuite_external_memory:Modify the hard coded appparameter Zhou Jun
@ 2020-12-15 5:55 ` Tu, Lijuan
0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2020-12-15 5:55 UTC (permalink / raw)
To: Zhou, JunX W, dts; +Cc: Zhou, JunX W
> Modify the hard coded app parameter to call the platform interface
>
> Signed-off-by: Zhou Jun <junx.w.zhou@intel.com>
Applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-15 5:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-10 11:30 [dts] [PATCH V1] tests/TestSuite_external_memory:Modify the hard coded appparameter Zhou Jun
2020-12-15 5:55 ` 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).