test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts]  [PATCH] tests: adjust defination related l3fwd app
@ 2020-02-25 10:24 Lijuan Tu
  2020-02-25  3:01 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: Lijuan Tu @ 2020-02-25 10:24 UTC (permalink / raw)
  To: dts; +Cc: Lijuan Tu

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-25  3:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-25 10:24 [dts] [PATCH] tests: adjust defination related l3fwd app Lijuan Tu
2020-02-25  3:01 ` Tu, Lijuan

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).