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 A5BA2A04C9; Wed, 16 Sep 2020 14:45:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9F31D1C29F; Wed, 16 Sep 2020 14:45:04 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 20E891C2DB for ; Wed, 16 Sep 2020 14:45:01 +0200 (CEST) IronPort-SDR: cTsaaTMzdOrZlYU7VzLDgbkyI5WyikZQDwNeyHdjbk8kcGZycn/2BaRhV0oXNPWvowykXYtWcw IoVCbb4i0Q2A== X-IronPort-AV: E=McAfee;i="6000,8403,9745"; a="160383165" X-IronPort-AV: E=Sophos;i="5.76,432,1592895600"; d="scan'208";a="160383165" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2020 05:45:01 -0700 IronPort-SDR: ULGdukgBXsh3gpHEJjLfsOjVR5Ag6TycX0yeyaz2v9b9E5HWiYvzTn5xSNRTresRF0Sdhc+kud USCMG2iFdCOQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,432,1592895600"; d="scan'208";a="409542326" Received: from unknown (HELO localhost.localdomain) ([10.240.183.52]) by fmsmga001.fm.intel.com with ESMTP; 16 Sep 2020 05:45:00 -0700 From: "Zhou, Jun" To: dts@dpdk.org Cc: "Zhou, Jun" , Zhou@dpdk.org Date: Wed, 16 Sep 2020 12:29:47 +0000 Message-Id: <20200916122951.17646-7-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200916122951.17646-1-junx.w.zhou@intel.com> References: <20200916122951.17646-1-junx.w.zhou@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1 06/10] tests/TestSuite_ipv4_reassembly.py: change mode of set parameter to adapt meson build 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" change mode of set parameter to adapt meson build Signed-off-by: Zhou, Jun --- tests/TestSuite_ipv4_reassembly.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_ipv4_reassembly.py b/tests/TestSuite_ipv4_reassembly.py index e3df14e6..b653bbe4 100644 --- a/tests/TestSuite_ipv4_reassembly.py +++ b/tests/TestSuite_ipv4_reassembly.py @@ -92,8 +92,7 @@ class TestIpReassembly(TestCase): """ Changes the maximum number of frames by modifying the example app code. """ - self.dut.send_expect( - "sed -i -e 's/CONFIG_RTE_LIBRTE_IP_FRAG_MAX_FRAG=.*$/CONFIG_RTE_LIBRTE_IP_FRAG_MAX_FRAG=%s/' ./config/common_base" % int(num_of_fragments), "# ") + self.dut.set_build_options({'RTE_LIBRTE_IP_FRAG_MAX_FRAG': int(num_of_fragments)}) self.dut.send_expect("export RTE_TARGET=" + self.target, "#") self.dut.send_expect("export RTE_SDK=`pwd`", "#") self.dut.send_expect("rm -rf %s" % self.target, "# ", 5) @@ -511,7 +510,7 @@ class TestIpReassembly(TestCase): self.test_config = IpReassemblyTestConfig(self, number_of_frames=1, flowttl='3s') - + self.compile_example_app() self.execute_example_app() self.tcpdump_start_sniffing() @@ -540,13 +539,13 @@ class TestIpReassembly(TestCase): Sends 1K jumbo frames using the right configuration. Expects all the frames to be forwarded back. """ - mtu = 9000 self.test_config = IpReassemblyTestConfig(self, payload_size=mtu - 100, fragment_size=2500) try: self.set_tester_iface_mtu(self.test_config.tester_iface, mtu) + self.compile_example_app() self.execute_example_app() self.send_n_siff_packets() self.verify_all() -- 2.25.1