[V1] tests/TestSuite_flexible_rxd:support meson build method
diff mbox series

Message ID 20200923023812.21102-1-weix.xie@intel.com
State Accepted
Headers show
Series
  • [V1] tests/TestSuite_flexible_rxd:support meson build method
Related show

Commit Message

Xie, WeiX Sept. 23, 2020, 2:38 a.m. UTC
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(+)

Comments

Xie, WeiX Sept. 23, 2020, 2:40 a.m. UTC | #1
Tested-by:  Xie,WeiX < weix.xie@intel.com>

Regards,
Xie Wei

> -----Original Message-----
> From: Xie, WeiX
> Sent: Wednesday, September 23, 2020 10:38 AM
> To: dts@dpdk.org
> Cc: Xie, WeiX <weix.xie@intel.com>
> Subject: [dts][PATCH V1] tests/TestSuite_flexible_rxd:support meson build method
Tu, Lijuan Oct. 12, 2020, 8:03 a.m. UTC | #2
> 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

Applied

Patch
diff mbox series

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)