* [dts] [PATCH V1] tests/l3fwd_base: update to support meson build
@ 2020-08-11 16:46 lingwei
2020-08-12 8:41 ` Tu, Lijuan
0 siblings, 1 reply; 2+ messages in thread
From: lingwei @ 2020-08-11 16:46 UTC (permalink / raw)
To: dts; +Cc: lingwei
update dts to support meson build type
Signed-off-by: lingwei <weix.ling@intel.com>
---
tests/l3fwd_base.py | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/tests/l3fwd_base.py b/tests/l3fwd_base.py
index a6e26b0..2cac378 100644
--- a/tests/l3fwd_base.py
+++ b/tests/l3fwd_base.py
@@ -640,8 +640,8 @@ class L3fwdBase(object):
"""
Prepare long prefix match table, __replace P(x) port pattern
"""
- l3fwd_method = '_'.join(['l3fwd', mode.value])
- self.d_con("make clean -C examples/l3fwd")
+ self.app_name = self.dut.apps_name['l3fwd'].replace(' ', '')
+ l3fwd_method = ''.join(['_', mode.value])
flg = 1 if mode is MATCH_MODE.LPM else 0
_opt = "USER_FLAGS=-DAPP_LOOKUP_METHOD={}".format(flg) \
if self.__mode is SUITE_TYPE.PF else ''
@@ -649,12 +649,11 @@ class L3fwdBase(object):
self.verify("Error" not in out, "compilation error 1")
self.verify("No such file" not in out, "compilation error 2")
if not rename:
- return "./examples/l3fwd/build/l3fwd"
+ return "./" + self.app_name
# rename binary file
self.d_con(
- ("mv -f examples/l3fwd/build/l3fwd "
- "examples/l3fwd/build/{}").format(l3fwd_method))
- l3fwd_bin = os.path.join("./examples/l3fwd/build/", l3fwd_method)
+ ("mv -f " + self.app_name + " " + self.app_name + "{}").format(l3fwd_method))
+ l3fwd_bin = os.path.join("./" + self.app_name + l3fwd_method)
return l3fwd_bin
def __start_l3fwd(self, mode, core_mask, config, frame_size):
--
2.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH V1] tests/l3fwd_base: update to support meson build
2020-08-11 16:46 [dts] [PATCH V1] tests/l3fwd_base: update to support meson build lingwei
@ 2020-08-12 8:41 ` Tu, Lijuan
0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2020-08-12 8:41 UTC (permalink / raw)
To: Ling, WeiX, dts; +Cc: Ling, WeiX
> Subject: [dts] [PATCH V1] tests/l3fwd_base: update to support meson build
>
> update dts to support meson build type
>
> Signed-off-by: lingwei <weix.ling@intel.com>
> ---
> tests/l3fwd_base.py | 11 +++++------
Applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-12 8:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-11 16:46 [dts] [PATCH V1] tests/l3fwd_base: update to support meson build lingwei
2020-08-12 8:41 ` 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).