From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 8FD9358D4 for ; Thu, 11 Aug 2016 03:51:37 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 10 Aug 2016 18:51:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,502,1464678000"; d="scan'208,217";a="1039016461" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by fmsmga002.fm.intel.com with ESMTP; 10 Aug 2016 18:51:30 -0700 Message-ID: <57ABDAD5.4080204@intel.com> Date: Thu, 11 Aug 2016 09:54:29 +0800 From: "Liu, Yong" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: "xueqin.lin" , dts@dpdk.org CC: Xueqin Lin References: <1470815735-10949-1-git-send-email-xlin15@shecgisg005.sh.intel.com> In-Reply-To: <1470815735-10949-1-git-send-email-xlin15@shecgisg005.sh.intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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:51:38 -0000 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 = self.dut.get_ports(self.nic) > + self.verify(len(self.ports) >= 2, "Insufficient number of ports.") > + patch_file = r'dep/fm10k-add-a-unit-test-for-FTAG-based-forwarding.patch' > + patch_dst = "/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=y/a\CONFIG_RTE_LIBRTE_FM10K_FTAG_FWD=y' config/common_linuxapp", "# ") > + self.dut.send_expect("sed -i -e '/SRCS-y += test_pmd_perf.c/a\SRCS-y += test_fm10k_ftag.c' app/test/Makefile", "# ") > + out = self.dut.send_expect("make install T=%s -j" %self.dut.target, "# ", 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.