From: LihongX Ma <lihongx.ma@intel.com>
To: dts@dpdk.org
Cc: weix.ling@intel.com, LihongX Ma <lihongx.ma@intel.com>
Subject: [dts] [PATCH V1] framework/project_dpdk: add examples/all build for meson build
Date: Thu, 10 Sep 2020 09:12:56 +0800 [thread overview]
Message-ID: <1599700376-28951-1-git-send-email-lihongx.ma@intel.com> (raw)
add support for build all examples in suite
Signed-off-by: LihongX Ma <lihongx.ma@intel.com>
---
framework/project_dpdk.py | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py
index b5727ef..c1b5eaf 100644
--- a/framework/project_dpdk.py
+++ b/framework/project_dpdk.py
@@ -543,18 +543,22 @@ class DPDKdut(Dut):
folder_info = folder.split('/')
name = folder_info[-1]
- if name not in self.apps_name:
+ if name != 'examples' and name not in self.apps_name:
raise Exception('Please config %s file path on conf/app_name.cfg' % name)
- example = '/'.join(folder_info[folder_info.index('examples')+1:])
+ if name == 'examples':
+ example = 'all'
+ else:
+ example = '/'.join(folder_info[folder_info.index('examples')+1:])
out = self.send_expect("meson configure -Dexamples=%s %s" % (example, self.target), "# ")
assert ("FAILED" not in out), "Compilation error... \r\n %s" % out
out = self.send_expect("ninja -C %s" % self.target, "# ", timeout)
assert ("FAILED" not in out), "Compilation error... \r\n %s" % out
# verify the app build in the config path
- out = self.send_expect('ls %s' % self.apps_name[name], "# ", verify=True)
- assert(isinstance(out, str)), 'please confirm %s app path and name in app_name.cfg' % name
+ if example != 'all':
+ out = self.send_expect('ls %s' % self.apps_name[name], "# ", verify=True)
+ assert(isinstance(out, str)), 'please confirm %s app path and name in app_name.cfg' % name
return out
--
2.7.4
next reply other threads:[~2020-09-10 8:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-10 1:12 LihongX Ma [this message]
2020-09-10 8:51 ` Ling, WeiX
2020-09-15 8:33 ` 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=1599700376-28951-1-git-send-email-lihongx.ma@intel.com \
--to=lihongx.ma@intel.com \
--cc=dts@dpdk.org \
--cc=weix.ling@intel.com \
/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).