From: Lijuan Tu <lijuan.tu@intel.com>
To: dts@dpdk.org
Cc: Lijuan Tu <lijuan.tu@intel.com>
Subject: [dts] [PATCH] tests: adjust defination related l3fwd app
Date: Tue, 25 Feb 2020 18:24:07 +0800 [thread overview]
Message-ID: <1582626247-127409-1-git-send-email-lijuan.tu@intel.com> (raw)
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 <lijuan.tu@intel.com>
---
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
next reply other threads:[~2020-02-25 2:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-25 10:24 Lijuan Tu [this message]
2020-02-25 3:01 ` Tu, Lijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1582626247-127409-1-git-send-email-lijuan.tu@intel.com \
--to=lijuan.tu@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).