From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 9315F2B94 for ; Thu, 2 Mar 2017 08:49:31 +0100 (CET) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Mar 2017 23:49:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,230,1484035200"; d="scan'208";a="71288422" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga005.fm.intel.com with ESMTP; 01 Mar 2017 23:49:29 -0800 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 1 Mar 2017 23:49:29 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx121.amr.corp.intel.com (10.18.125.36) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 1 Mar 2017 23:49:29 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.177]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.204]) with mapi id 14.03.0248.002; Thu, 2 Mar 2017 15:49:26 +0800 From: "Xu, HuilongX" To: "Liu, Yong" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH V1] fix dpdk test app compile issue Thread-Index: AQHSkyQ/vwMdLXAlAkGLmBc5IIExtaGAnfyAgACNupA= Date: Thu, 2 Mar 2017 07:49:26 +0000 Message-ID: References: <1488438760-2321-1-git-send-email-huilongx.xu@intel.com> <58B7C745.1060303@intel.com> In-Reply-To: <58B7C745.1060303@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] fix dpdk test app compile issue 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: , X-List-Received-Date: Thu, 02 Mar 2017 07:49:32 -0000 Hi yong, Dpdk change merge finish already and not create any tag,=20 we should merge this patch to dts, because all unit test will can't exec = in daily regression. Thanks a lot > -----Original Message----- > From: Liu, Yong > Sent: Thursday, March 02, 2017 3:18 PM > To: Xu, HuilongX; dts@dpdk.org > Subject: Re: [dts] [PATCH V1] fix dpdk test app compile issue >=20 > Thanks, huilong. If I am right, this patch is for latest dpdk code and no= t work > on 17.02. > Pending merge action after tag for v17.02 created. >=20 > On 03/02/2017 03:12 PM, xu,huilong wrote: > > change list: > > new dpdk code move code path and make file, default compile will not > compile app test path. > > so should compile test app and copy test app to driver compile path. > > > > Signed-off-by: xu,huilong > > --- > > framework/project_dpdk.py | 15 ++++++++++++++- > > 1 file changed, 14 insertions(+), 1 deletion(-) > > > > diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py > > index e2e4b5e..7a4e4f7 100644 > > --- a/framework/project_dpdk.py > > +++ b/framework/project_dpdk.py > > @@ -183,6 +183,13 @@ class DPDKdut(Dut): > > > > # compile > > out =3D self.send_expect("make -j install T=3D%s %s" % (targe= t, > > extra_options), "# ", build_time) > > + #should not check test app compile status, because if test com= pile fail, > > + #all unit test can't exec, but others case will exec sucessful= l > > + self.send_expect("make -j -C test/", "# ", build_time) > > + app_list =3D ['./test/test/test', './test/test-acl/testacl', '= ./test/test- > pipeline/testpipeline', './test/cmdline_test/cmdline_test'] > > + for app in app_list: > > + self.send_expect('cp %s ./%s/app' % (app, target), "# ", > > + 30) > > + > > > > if("Error" in out or "No rule to make" in out): > > self.logger.error("ERROR - try without '-j'") @@ -191,7 > > +198,6 @@ class DPDKdut(Dut): > > > > assert ("Error" not in out), "Compilation error..." > > assert ("No rule to make" not in out), "No rule to make error= ..." > > - > > def build_install_dpdk_freebsd(self, target, extra_options): > > """ > > Build DPDK source code on Freebsd with specified target. > > @@ -206,6 +212,13 @@ class DPDKdut(Dut): > > out =3D self.send_expect("make -j %d install T=3D%s CC=3Dgcc4= 8" % > (self.number_of_cores, > > = target), > > "#", 120) > > + #should not check test app compile status, because if test com= pile fail, > > + #all unit test can't exec, but others case will exec sucessful= l > > + self.send_expect("make -j -C test/ CC=3Dgcc48", "# ", > > + build_time) > > + > > + app_list =3D ['./test/test/test', './test/test-acl/testacl', '= ./test/test- > pipeline/testpipeline', './test/cmdline_test/cmdline_test'] > > + for app in app_list: > > + self.send_expect('cp -f %s ./%s/app' % (app, target), "# > > + ", 30) > > > > if("Error" in out or "No rule to make" in out): > > self.logger.error("ERROR - try without '-j'")