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 6456DA04A2; Tue, 12 May 2020 08:06:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4C0B31C138; Tue, 12 May 2020 08:06:33 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 549191C0D9 for ; Tue, 12 May 2020 08:06:30 +0200 (CEST) IronPort-SDR: c+SMbKUXNOB/ouXaE1LqWucfPajgSGTCg43ogE3u8lL0dYyuPUOblKEicFcuNwG27xCOsLwfnZ X1XRja1YSGBw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2020 23:06:29 -0700 IronPort-SDR: KO7Jd6nJNYJIXvibRgQ5awALjxIr9+tEQnmBYjS3YP1PhKv/yZ2WIRGUQuPNsxEjiWUjQRQcOA 1mwNKefk6sQA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,382,1583222400"; d="scan'208";a="280012597" Received: from unknown (HELO xqm-virtio_tester.sh.intel.com) ([10.240.183.52]) by orsmga002.jf.intel.com with ESMTP; 11 May 2020 23:06:28 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Tue, 12 May 2020 13:58:19 +0800 Message-Id: <1589263099-220942-2-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1589263099-220942-1-git-send-email-qimaix.xiao@intel.com> References: <1589263099-220942-1-git-send-email-qimaix.xiao@intel.com> Subject: [dts] [PATCH V1 1/2]unit_tests_pmd_perf: change compile cmd of app/test according to dpdk's update 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" *. replace compile command of app/test with new command Signed-off-by: Xiao Qimai --- tests/TestSuite_unit_tests_pmd_perf.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_unit_tests_pmd_perf.py b/tests/TestSuite_unit_tests_pmd_perf.py index a01cf4e..3f4ed12 100644 --- a/tests/TestSuite_unit_tests_pmd_perf.py +++ b/tests/TestSuite_unit_tests_pmd_perf.py @@ -71,13 +71,17 @@ class TestUnitTestsPmdPerf(TestCase): [arch, machine, _, toolchain] = self.target.split('-') self.dut.send_expect("sed -i -e 's/CONFIG_RTE_IXGBE_INC_VECTOR=y/CONFIG_RTE_IXGBE_INC_VECTOR=n/' config/common_base", "# ", 30) self.dut.build_install_dpdk(self.target) - out = self.dut.build_dpdk_apps('./app/test/') - self.verify('make: Leaving directory' in out, "Compilation failed") - self.dut.send_expect("mv -f ./app/test/test ./app/test/test_scalar", "# ") + out = self.dut.send_expect("make -j %s app/test_sub O=%s" % (self.dut.number_of_cores, self.target), "#") + self.verify("Error" not in out, "compilation l3fwd-power error") + self.verify("No such" not in out, "Compilation error") + self.dut.send_expect("mv -f ./%s/app/test ./app/test/test_scalar" % self.target, "# ") + self.dut.send_expect("sed -i -e 's/CONFIG_RTE_IXGBE_INC_VECTOR=n/CONFIG_RTE_IXGBE_INC_VECTOR=y/' config/common_base", "# ", 30) self.dut.build_install_dpdk(self.target) - out = self.dut.build_dpdk_apps('./app/test/') - self.verify('make: Leaving directory' in out, "Compilation failed") + out = self.dut.send_expect("make -j %s app/test_sub O=%s" % (self.dut.number_of_cores, self.target), "#") + self.verify("Error" not in out, "compilation l3fwd-power error") + self.verify("No such" not in out, "Compilation error") + self.dut.send_expect("mv -f ./%s/app/test ./app/test/test" % self.target, "# ") socket_id = self.dut.ports_info[0]['port'].socket self.cores = self.dut.get_core_list(config='1S/4C/1T', socket=socket_id) -- 1.8.3.1