* [dts] [PATCH] tests/TestSuite_unit_tests_event_timer.py: Added an identifier for the "test" app.
@ 2021-02-22 11:19 skalal
2021-04-07 5:38 ` Tu, Lijuan
0 siblings, 1 reply; 2+ messages in thread
From: skalal @ 2021-02-22 11:19 UTC (permalink / raw)
To: dts; +Cc: zzhou, pvukkisala, skalal
From: skalal <skalal@marvell.com>
Signed-off-by: skalal <skalal@marvell.com>
---
tests/TestSuite_unit_tests_event_timer.py | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/tests/TestSuite_unit_tests_event_timer.py b/tests/TestSuite_unit_tests_event_timer.py
index fcb54cf..22c316e 100644
--- a/tests/TestSuite_unit_tests_event_timer.py
+++ b/tests/TestSuite_unit_tests_event_timer.py
@@ -52,10 +52,11 @@ class TestUnitTestEventTimer(TestCase):
self.coremask = utils.create_mask(cores)
# Based on h/w type, choose how many ports to use
self.dut_ports = self.dut.get_ports()
+ self.app_name = self.dut.apps_name['test']
if self.nic == "cavium_a063" or self.nic == "cavium_a064":
self.eventdev_device_bus_id = "0002:0e:00.0"
- self.eventdev_device_id = "a0f9"
+ self.eventdev_device_id = "a0f9"
#### Bind evendev device ####
self.dut.bind_eventdev_port(port_to_bind=self.eventdev_device_bus_id)
@@ -65,7 +66,6 @@ class TestUnitTestEventTimer(TestCase):
self.eventdev_timer_device_bus_id = "0000:0a:01.0"
self.dut.bind_eventdev_port(port_to_bind=self.eventdev_timer_device_bus_id)
-
def set_up(self):
"""
Run before each test case.
@@ -78,15 +78,14 @@ class TestUnitTestEventTimer(TestCase):
"""
if self.nic == "cavium_a063" or self.nic == "cavium_a064":
- self.dut.send_expect("./%s/app/test -n 1 -c %s -w %s,single_ws=1,tim_stats_ena=1" % (self.target, self.coremask, self.eventdev_device_bus_id), "R.*T.*E.*>.*>", 60)
+ self.dut.send_expect("./%s -n 1 -c %s -w %s,single_ws=1,tim_stats_ena=1" % (self.app_name, self.coremask, self.eventdev_device_bus_id), "R.*T.*E.*>.*>", 60)
elif self.nic == "cavium_a034":
- self.dut.send_expect("./%s/app/test -n 1 -c %s -w %s,timvf_stats=1" % (self.target, self.coremask, self.eventdev_timer_device_bus_id), "R.*T.*E.*>.*>", 60)
+ self.dut.send_expect("./%s -n 1 -c %s -w %s,timvf_stats=1" % (self.app_name, self.coremask, self.eventdev_timer_device_bus_id), "R.*T.*E.*>.*>", 60)
out = self.dut.send_expect("event_timer_adapter_test", "RTE>>", 300)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
return 'SUCCESS'
-
def tear_down(self):
"""
Run after each test case.
--
2.9.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH] tests/TestSuite_unit_tests_event_timer.py: Added an identifier for the "test" app.
2021-02-22 11:19 [dts] [PATCH] tests/TestSuite_unit_tests_event_timer.py: Added an identifier for the "test" app skalal
@ 2021-04-07 5:38 ` Tu, Lijuan
0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2021-04-07 5:38 UTC (permalink / raw)
To: skalal, dts; +Cc: zzhou, pvukkisala
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of skalal@marvell.com
> Sent: 2021年2月22日 19:19
> To: dts@dpdk.org
> Cc: zzhou@marvell.com; pvukkisala@marvell.com; skalal <skalal@marvell.com>
> Subject: [dts] [PATCH] tests/TestSuite_unit_tests_event_timer.py: Added an
> identifier for the "test" app.
>
> From: skalal <skalal@marvell.com>
>
> Signed-off-by: skalal <skalal@marvell.com>
Applied, thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-07 5:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-22 11:19 [dts] [PATCH] tests/TestSuite_unit_tests_event_timer.py: Added an identifier for the "test" app skalal
2021-04-07 5:38 ` 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).