[dts] [PATCH V1] tests/TestSuite_flexible_rxd:support meson build method

Xie wei weix.xie at intel.com
Wed Sep 23 04:38:12 CEST 2020


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 at 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



More information about the dts mailing list