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 67B74A0524; Tue, 25 Feb 2020 03:15:25 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0DA2F1F1C; Tue, 25 Feb 2020 03:15:25 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 0A2E23B5 for ; Tue, 25 Feb 2020 03:15:22 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Feb 2020 18:15:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,482,1574150400"; d="scan'208";a="410077954" Received: from unknown (HELO dpdk-lijuan.sh.intel.com) ([10.67.119.192]) by orsmga005.jf.intel.com with ESMTP; 24 Feb 2020 18:15:20 -0800 From: Lijuan Tu To: dts@dpdk.org Cc: Lijuan Tu Date: Tue, 25 Feb 2020 18:24:07 +0800 Message-Id: <1582626247-127409-1-git-send-email-lijuan.tu@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH] tests: adjust defination related l3fwd app 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" According to DPDK(a65bf3d724), the defination of RTE_TEST_RX_DESC_DEFAULT and RTE_TEST_TX_DESC_DEFAULT are moved to examples/l3fwd/l3fwd.h Signed-off-by: Lijuan Tu --- tests/TestSuite_vf_l3fwd.py | 4 ++-- tests/l3fwd_base.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_vf_l3fwd.py b/tests/TestSuite_vf_l3fwd.py index 1c3c001..2416a40 100644 --- a/tests/TestSuite_vf_l3fwd.py +++ b/tests/TestSuite_vf_l3fwd.py @@ -71,9 +71,9 @@ class TestVfL3fwd(TestCase): self.l3fwd_test_results = {'header': [], 'data': []} self.logger.info("Configure RX/TX descriptor to 2048, and re-build ./examples/l3fwd") self.dut.send_expect("sed -i -e 's/define RTE_TEST_RX_DESC_DEFAULT.*$/" - + "define RTE_TEST_RX_DESC_DEFAULT 2048/' ./examples/l3fwd/main.c", "#", 20) + + "define RTE_TEST_RX_DESC_DEFAULT 2048/' ./examples/l3fwd/l3fwd.h", "#", 20) self.dut.send_expect("sed -i -e 's/define RTE_TEST_TX_DESC_DEFAULT.*$/" - + "define RTE_TEST_TX_DESC_DEFAULT 2048/' ./examples/l3fwd/main.c", "#", 20) + + "define RTE_TEST_TX_DESC_DEFAULT 2048/' ./examples/l3fwd/l3fwd.h", "#", 20) out = self.dut.build_dpdk_apps("./examples/l3fwd") self.verify("Error" not in out, "compilation error 1") self.verify("No such file" not in out, "compilation error 2") diff --git a/tests/l3fwd_base.py b/tests/l3fwd_base.py index 5d11ac7..4eb823c 100644 --- a/tests/l3fwd_base.py +++ b/tests/l3fwd_base.py @@ -350,12 +350,12 @@ class L3fwdBase(object): "sed -i -e 's/" "define RTE_TEST_RX_DESC_DEFAULT.*$/" "define RTE_TEST_RX_DESC_DEFAULT 2048/' " - "./examples/l3fwd/main.c")) + "./examples/l3fwd/l3fwd.h")) self.d_con(( "sed -i -e 's/" "define RTE_TEST_TX_DESC_DEFAULT.*$/" "define RTE_TEST_TX_DESC_DEFAULT 2048/' " - "./examples/l3fwd/main.c")) + "./examples/l3fwd/l3fwd.h")) self.__l3fwd_em = self.__init_l3fwd(EM) self.__l3fwd_lpm = self.__init_l3fwd(LPM) -- 1.8.3.1