From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 21949A04B5; Thu, 10 Sep 2020 10:46:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id ED23F1BEB3; Thu, 10 Sep 2020 10:46:23 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id E1634DE0 for ; Thu, 10 Sep 2020 10:46:21 +0200 (CEST) IronPort-SDR: NZ9m5Kvuz6aCRATt3VlHTZPGyB2Cc7ryTELO8bZcnF8L6U9CfFd5POwtYxXsmiFIZlNiPuU6Z1 c1iVQraklpkw== X-IronPort-AV: E=McAfee;i="6000,8403,9739"; a="146198689" X-IronPort-AV: E=Sophos;i="5.76,412,1592895600"; d="scan'208";a="146198689" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2020 01:46:20 -0700 IronPort-SDR: UVIMWvKf4VsAKpGmoF8MyT+C9fcurNIqvNUO0gVfj0R5UwASccb65uBccHAIdJAeEsSu8WDTNj 8jnwvPXy8AOQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,412,1592895600"; d="scan'208";a="317835046" Received: from dpdk-lihong-ub1604.sh.intel.com ([10.67.118.174]) by orsmga002.jf.intel.com with ESMTP; 10 Sep 2020 01:46:19 -0700 From: LihongX Ma To: dts@dpdk.org Cc: weix.ling@intel.com, LihongX Ma Date: Thu, 10 Sep 2020 09:12:56 +0800 Message-Id: <1599700376-28951-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH V1] framework/project_dpdk: add examples/all build for meson build X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" add support for build all examples in suite Signed-off-by: LihongX Ma --- 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