diff mbox series

[V1] tests/l3fwd_base: update to support meson build

Message ID 20200811164641.58431-1-weix.ling@intel.com (mailing list archive)
State Accepted
Headers show
Series [V1] tests/l3fwd_base: update to support meson build | expand

Commit Message

Ling, WeiX Aug. 11, 2020, 4:46 p.m. UTC
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(-)

Comments

Tu, Lijuan Aug. 12, 2020, 8:41 a.m. UTC | #1
> 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
diff mbox series

Patch

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):