From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 3817158ED for ; Thu, 11 Aug 2016 03:56:24 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP; 10 Aug 2016 18:56:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,502,1464678000"; d="scan'208,217";a="747117184" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by FMSMGA003.fm.intel.com with ESMTP; 10 Aug 2016 18:56:23 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 10 Aug 2016 18:56:22 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 10 Aug 2016 18:56:22 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.181]) by shsmsx102.ccr.corp.intel.com ([169.254.2.147]) with mapi id 14.03.0248.002; Thu, 11 Aug 2016 09:56:20 +0800 From: "Lin, Xueqin" To: "Liu, Yong" , xueqin.lin , "dts@dpdk.org" Thread-Topic: [dts][PATCH] tests: add ftag test suite and plan Thread-Index: AQHR8tzS317ttkDDOUq0R1xULU84KqBCesGAgACGd1A= Date: Thu, 11 Aug 2016 01:56:19 +0000 Message-ID: <0D300480287911409D9FF92C1FA2A3351A7C11D1@SHSMSX103.ccr.corp.intel.com> References: <1470815735-10949-1-git-send-email-xlin15@shecgisg005.sh.intel.com> <57ABDAD5.4080204@intel.com> In-Reply-To: <57ABDAD5.4080204@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] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dts] [PATCH] tests: add ftag test suite and plan 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, 11 Aug 2016 01:56:24 -0000 Ok , thanks for reminder. From: Liu, Yong Sent: Thursday, August 11, 2016 9:54 AM To: xueqin.lin; dts@dpdk.org Cc: Lin, Xueqin Subject: Re: [dts][PATCH] tests: add ftag test suite and plan Xueqin, one comment about dpdk build. On 08/10/2016 03:55 PM, xueqin.lin wrote: + def set_up_all(self): + """ + Run at the start of each test suite. + """ + self.verify(self.nic in ['redrockcanyou','atwood','boulderrapid'],= 'ftag test can not support %s nic'%self.nic) + self.ports =3D self.dut.get_ports(self.nic) + self.verify(len(self.ports) >=3D 2, "Insufficient number of ports.= ") + patch_file =3D r'dep/fm10k-add-a-unit-test-for-FTAG-based-forwardi= ng.patch' + patch_dst =3D "/tmp/" + self.dut.session.copy_file_to(patch_file, patch_dst) + self.patch_hotfix_dpdk(patch_dst + "fm10k-add-a-unit-test-for-FTAG= -based-forwarding.patch", True) + self.dut.send_expect("sed -i -e '/CONFIG_RTE_VIRTIO_USER=3Dy/a\CON= FIG_RTE_LIBRTE_FM10K_FTAG_FWD=3Dy' config/common_linuxapp", "# ") + self.dut.send_expect("sed -i -e '/SRCS-y +=3D test_pmd_perf.c/a\SR= CS-y +=3D test_fm10k_ftag.c' app/test/Makefile", "# ") + out =3D self.dut.send_expect("make install T=3D%s -j" %self.dut.ta= rget, "# ", 300) + self.verify('Build complete' in out, "Compilation failed") You can use function self.dut.build_install_dpdk(self.target) to build dpdk= . It's better to rebuild dpdk in tear_down_all function.