test suite reviews and discussions
 help / color / mirror / Atom feed
From: lingwei <weix.ling@intel.com>
To: dts@dpdk.org
Cc: lingwei <weix.ling@intel.com>
Subject: [dts] [PATCH V1] tests/l3fwd_base: update to support meson build
Date: Tue, 11 Aug 2020 16:46:41 +0000	[thread overview]
Message-ID: <20200811164641.58431-1-weix.ling@intel.com> (raw)

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


             reply	other threads:[~2020-08-11  9:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-11 16:46 lingwei [this message]
2020-08-12  8:41 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200811164641.58431-1-weix.ling@intel.com \
    --to=weix.ling@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).