* Re: [dts] [PATCH V1] tests/TestSuite_softnic:support meson build
2020-09-21 16:15 [dts] [PATCH V1] tests/TestSuite_softnic:support meson build lingwei
@ 2020-09-21 8:21 ` Ling, WeiX
2020-09-22 8:17 ` Ma, LihongX
2020-09-23 8:49 ` Tu, Lijuan
1 sibling, 1 reply; 4+ messages in thread
From: Ling, WeiX @ 2020-09-21 8:21 UTC (permalink / raw)
To: dts
[-- Attachment #1: Type: text/plain, Size: 320 bytes --]
Tested-by: Ling, Wei <weix.ling@intel.com>
Regards,
Ling Wei
> -----Original Message-----
> From: Ling, WeiX <weix.ling@intel.com>
> Sent: Tuesday, September 22, 2020 12:15 AM
> To: dts@dpdk.org
> Cc: Ling, WeiX <weix.ling@intel.com>
> Subject: [dts][PATCH V1] tests/TestSuite_softnic:support meson build
[-- Attachment #2: TestSoftnic.log --]
[-- Type: application/octet-stream, Size: 50664 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [dts] [PATCH V1] tests/TestSuite_softnic:support meson build
@ 2020-09-21 16:15 lingwei
2020-09-21 8:21 ` Ling, WeiX
2020-09-23 8:49 ` Tu, Lijuan
0 siblings, 2 replies; 4+ messages in thread
From: lingwei @ 2020-09-21 16:15 UTC (permalink / raw)
To: dts; +Cc: lingwei
support meson build
Signed-off-by: lingwei <weix.ling@intel.com>
---
tests/TestSuite_softnic.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/tests/TestSuite_softnic.py b/tests/TestSuite_softnic.py
index 7752546..c2487e9 100644
--- a/tests/TestSuite_softnic.py
+++ b/tests/TestSuite_softnic.py
@@ -76,7 +76,8 @@ class TestSoftnic(TestCase):
self.dut.session.copy_file_to(self.tm_firmware, self.root_path)
self.dut.session.copy_file_to(self.nat_firmware, self.root_path)
self.eal_param = " -w %s" % self.dut.ports_info[0]['pci']
- self.cmd = "./%s/app/testpmd -c 0x7 -s 0x4 -n 4 %s --vdev 'net_softnic0,firmware=/tmp/%s,cpu_id=1,conn_port=8086' -- -i --forward-mode=softnic --portmask=0x2"
+ self.path = self.dut.apps_name['test-pmd']
+ self.cmd = "./%s -c 0x7 -s 0x4 -n 4 %s --vdev 'net_softnic0,firmware=/tmp/%s,cpu_id=1,conn_port=8086' -- -i --forward-mode=softnic --portmask=0x2"
# get dts output path
if self.logger.log_path.startswith(os.sep):
self.output_path = self.logger.log_path
@@ -107,7 +108,7 @@ class TestSoftnic(TestCase):
# 10G nic pps(M)
expect_pps = [14, 8, 4, 2, 1, 0.9, 0.8]
- self.dut.send_expect(self.cmd % (self.target, self.eal_param, 'firmware.cli'), "testpmd>", timeout=300)
+ self.dut.send_expect(self.cmd % (self.path, self.eal_param, 'firmware.cli'), "testpmd>", timeout=300)
self.dut.send_expect("set fwd macswap", "testpmd>")
self.dut.send_expect("start", "testpmd>")
rx_port = self.tester.get_local_port(0)
@@ -133,7 +134,7 @@ class TestSoftnic(TestCase):
def test_perf_shaping_for_pipe(self):
self.change_config_file('tm_firmware.cli')
- self.dut.send_expect(self.cmd % (self.target, self.eal_param, 'tm_firmware.cli'), "testpmd> ", timeout=800)
+ self.dut.send_expect(self.cmd % (self.path, self.eal_param, 'tm_firmware.cli'), "testpmd> ", timeout=800)
self.dut.send_expect("set fwd macswap", "testpmd>")
self.dut.send_expect("start", "testpmd>")
rx_port = self.tester.get_local_port(0)
@@ -170,7 +171,7 @@ class TestSoftnic(TestCase):
for t in pkt_type:
for i in range(2):
self.dut.send_expect("sed -i -e '12c table action profile AP0 ipv4 offset 270 fwd nat %s proto %s' %s" % (pkt_location[i], t, self.root_path + 'nat_firmware.cli'), "#")
- self.dut.send_expect(self.cmd % (self.target, self.eal_param, 'nat_firmware.cli'), "testpmd>", timeout=60)
+ self.dut.send_expect(self.cmd % (self.path, self.eal_param, 'nat_firmware.cli'), "testpmd>", timeout=60)
self.dut.send_expect("start", "testpmd>")
# src ip tcp
for j in range(2):
--
2.17.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dts] [PATCH V1] tests/TestSuite_softnic:support meson build
2020-09-21 8:21 ` Ling, WeiX
@ 2020-09-22 8:17 ` Ma, LihongX
0 siblings, 0 replies; 4+ messages in thread
From: Ma, LihongX @ 2020-09-22 8:17 UTC (permalink / raw)
To: Ling, WeiX, dts
Acked-by: lihongx Ma<lihongx.ma@intel.com>
Regards,
Ma,lihong
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Ling, WeiX
> Sent: Monday, September 21, 2020 4:21 PM
> To: dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] tests/TestSuite_softnic:support meson build
>
> Tested-by: Ling, Wei <weix.ling@intel.com>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dts] [PATCH V1] tests/TestSuite_softnic:support meson build
2020-09-21 16:15 [dts] [PATCH V1] tests/TestSuite_softnic:support meson build lingwei
2020-09-21 8:21 ` Ling, WeiX
@ 2020-09-23 8:49 ` Tu, Lijuan
1 sibling, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2020-09-23 8:49 UTC (permalink / raw)
To: Ling, WeiX, dts; +Cc: Ling, WeiX
> Subject: [dts] [PATCH V1] tests/TestSuite_softnic:support meson build
>
> support meson build
>
> Signed-off-by: lingwei <weix.ling@intel.com>
Applied
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-09-23 8:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-21 16:15 [dts] [PATCH V1] tests/TestSuite_softnic:support meson build lingwei
2020-09-21 8:21 ` Ling, WeiX
2020-09-22 8:17 ` Ma, LihongX
2020-09-23 8:49 ` 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).