test suite reviews and discussions
 help / color / mirror / Atom feed
From: Xie wei <weix.xie@intel.com>
To: dts@dpdk.org
Cc: Xie wei <weix.xie@intel.com>
Subject: [dts] [PATCH V1] tests/TestSuite_flexible_rxd:support meson build method
Date: Wed, 23 Sep 2020 10:38:12 +0800	[thread overview]
Message-ID: <20200923023812.21102-1-weix.xie@intel.com> (raw)

According to DPDK-23895, modify app/test-pmd/meson.build file to fix
build dpdk failed by meson method for ice NIC.

Signed-off-by: Xie wei <weix.xie@intel.com>
---
 tests/TestSuite_flexible_rxd.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/TestSuite_flexible_rxd.py b/tests/TestSuite_flexible_rxd.py
index 4a2d6f29..b69d8bb9 100644
--- a/tests/TestSuite_flexible_rxd.py
+++ b/tests/TestSuite_flexible_rxd.py
@@ -70,6 +70,9 @@ class TestFlexibleRxd(TestCase):
         Modify the dpdk code.
         """
         self.dut.send_expect("cp ./app/test-pmd/util.c .", "#", 15)
+        self.dut.send_expect("cp ./app/test-pmd/meson.build /root/", "#", 15)
+        pattern = r"/if dpdk_conf.has('RTE_LIBRTE_IXGBE_PMD')/i\if dpdk_conf.has('RTE_LIBRTE_ICE_PMD')\n\tdeps += 'pmd_ice'\nendif"
+        self.dut.send_expect(f'sed -i "{pattern}" app/test-pmd/meson.build', "#", 15)
         self.dut.send_expect(
             "sed -i '/#include <rte_flow.h>/a\#include <rte_pmd_ice.h>' app/test-pmd/util.c", "#", 15)
         self.dut.send_expect(
@@ -81,6 +84,8 @@ class TestFlexibleRxd(TestCase):
          Resume editing operation.
         """
         self.dut.send_expect("\cp ./util.c ./app/test-pmd/", "#", 15)
+        self.dut.send_expect("\cp /root/meson.build ./app/test-pmd/", "#", 15)
+        self.dut.send_expect("rm -rf  /root/meson.build", "#", 15)
         self.dut.send_expect("rm -rf  ./util.c", "#", 15)
         self.dut.build_install_dpdk(self.dut.target)
 
-- 
2.17.1


             reply	other threads:[~2020-09-23  2:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-23  2:38 Xie wei [this message]
2020-09-23  2:40 ` Xie, WeiX
2020-10-12  8:03 ` 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=20200923023812.21102-1-weix.xie@intel.com \
    --to=weix.xie@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).