[dts] [PATCH V1] tests/TestSuite_pvp_virtio_bonding: add RTE_LIBRTE_PMD_BOND for meson build

JiangYuX yux.jiang at intel.com
Tue Sep 29 11:26:13 CEST 2020


From: JiangYu <yux.jiang at intel.com>

Add RTE_LIBRTE_PMD_BOND for meson build

Signed-off-by: JiangYu <yux.jiang at intel.com>
---
 tests/TestSuite_pvp_virtio_bonding.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/tests/TestSuite_pvp_virtio_bonding.py b/tests/TestSuite_pvp_virtio_bonding.py
index e6d0e61..10cfe74 100644
--- a/tests/TestSuite_pvp_virtio_bonding.py
+++ b/tests/TestSuite_pvp_virtio_bonding.py
@@ -210,11 +210,23 @@ class TestPVPVirtIOBonding(TestCase):
                 raise Exception("Set up VM ENV failed")
         except Exception as e:
             self.logger.error("ERROR: Failure for %s" % str(e))
+        if self.dut.build_type == 'meson':
+            self.build_pmd_bond(self.vm_dut)
+
+    def build_pmd_bond(self, user_dut):
+        user_dut.set_build_options({'RTE_LIBRTE_PMD_BOND': 'y'})
+        user_dut.build_install_dpdk(self.target)
+
+    def restore_env(self, user_dut):
+        user_dut.set_build_options({'RTE_LIBRTE_PMD_BOND': 'n'})
+        user_dut.build_install_dpdk(self.target)
 
     def stop_testpmd_and_vm(self):
         """
         quit testpmd on vhost and stop vm
         """
+        if self.dut.build_type == 'meson':
+            self.restore_env(self.vm_dut)
         self.vhost_testpmd.quit()
         self.vm.stop()
 
-- 
2.7.4



More information about the dts mailing list