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 6BEC1A04B6; Fri, 11 Sep 2020 10:23:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 408DAE07; Fri, 11 Sep 2020 10:23:09 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id B8F071B13C for ; Fri, 11 Sep 2020 10:23:07 +0200 (CEST) IronPort-SDR: LRyLAb0s3FMvAs0IQTSPXSdCFkdx1CoqgkXsuSy8V/EAl0y5YRVDuPvlihI925fCcuJOrJVKpI WvrBXGvfIfwg== X-IronPort-AV: E=McAfee;i="6000,8403,9740"; a="222916275" X-IronPort-AV: E=Sophos;i="5.76,414,1592895600"; d="scan'208";a="222916275" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2020 01:23:07 -0700 IronPort-SDR: iONyShkI9AoiuvKcd/ti/fIw0pfD7VygyRXxAPEY9j1tGwJ1v4d8bFMVRxjHyR3yvM/O5KyZEX hrj1MXBh7HoQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,414,1592895600"; d="scan'208";a="408015872" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by fmsmga001.fm.intel.com with ESMTP; 11 Sep 2020 01:23:06 -0700 From: lingwei To: dts@dpdk.org Cc: lingwei Date: Fri, 11 Sep 2020 16:16:54 +0000 Message-Id: <20200911161656.30238-4-weix.ling@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200911161656.30238-1-weix.ling@intel.com> References: <20200911161656.30238-1-weix.ling@intel.com> Subject: [dts] [PATCH V3 3/5] tests/TestSuite_nic_single_core_perf:use API to set dpdk config when use meson 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" use API to set dpdk config when use meson Signed-off-by: lingwei --- tests/TestSuite_nic_single_core_perf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/TestSuite_nic_single_core_perf.py b/tests/TestSuite_nic_single_core_perf.py index 3460252..9bc421b 100644 --- a/tests/TestSuite_nic_single_core_perf.py +++ b/tests/TestSuite_nic_single_core_perf.py @@ -61,10 +61,12 @@ class TestNicSingleCorePerf(TestCase): if self.nic in ["fortville_25g", "fortville_spirit"]: self.dut.send_expect( "sed -i -e 's/CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC=n/CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC=y/' ./config/common_base", "#", 20) + self.dut.set_build_options({'RTE_LIBRTE_I40E_16BYTE_RX_DESC': 'y'}) self.dut.build_install_dpdk(self.target) elif self.nic in ["columbiaville_100g", "columbiaville_25g"]: self.dut.send_expect( "sed -i -e 's/CONFIG_RTE_LIBRTE_ICE_16BYTE_RX_DESC=n/CONFIG_RTE_LIBRTE_ICE_16BYTE_RX_DESC=y/' ./config/common_base", "#", 20) + self.dut.set_build_options({'RTE_LIBRTE_ICE_16BYTE_RX_DESC': 'y'}) self.dut.build_install_dpdk(self.target) # Based on h/w type, choose how many ports to use @@ -394,9 +396,11 @@ class TestNicSingleCorePerf(TestCase): if self.nic in ["fortville_25g", "fortville_spirit"]: self.dut.send_expect( "sed -i -e 's/CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC=y/CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC=n/' ./config/common_base", "#", 20) + self.dut.set_build_options({'RTE_LIBRTE_I40E_16BYTE_RX_DESC': 'n'}) self.dut.build_install_dpdk(self.target) elif self.nic in ["columbiaville_100g", "columbiaville_25g"]: self.dut.send_expect( "sed -i -e 's/CONFIG_RTE_LIBRTE_ICE_16BYTE_RX_DESC=y/CONFIG_RTE_LIBRTE_ICE_16BYTE_RX_DESC=n/' ./config/common_base", "#", 20) + self.dut.set_build_options({'RTE_LIBRTE_ICE_16BYTE_RX_DESC': 'n'}) self.dut.build_install_dpdk(self.target) self.dut.kill_all() -- 2.17.1