[V1] tests/TestSuite_pvp_virtio_bonding: add RTE_LIBRTE_PMD_BOND for meson build
diff mbox series

Message ID 20200929092613.17645-2-yux.jiang@intel.com
State Accepted
Headers show
Series
  • [V1] tests/TestSuite_pvp_virtio_bonding: add RTE_LIBRTE_PMD_BOND for meson build
Related show

Commit Message

Jiang, YuX Sept. 29, 2020, 9:26 a.m. UTC
From: JiangYu <yux.jiang@intel.com>

Add RTE_LIBRTE_PMD_BOND for meson build

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

Comments

Jiang, YuX Sept. 29, 2020, 9:28 a.m. UTC | #1
Tested-by: Jiang, YuX <yux.jiang@intel.com>

    Best Regards
    Jiang yu


> -----Original Message-----
> From: Jiang, YuX
> Sent: Tuesday, September 29, 2020 5:26 PM
> To: dts@dpdk.org
> Cc: Jiang, YuX <yux.jiang@intel.com>
> Subject: [dts] [PATCH V1] tests/TestSuite_pvp_virtio_bonding: add
> RTE_LIBRTE_PMD_BOND for meson build
Tu, Lijuan Oct. 12, 2020, 8:55 a.m. UTC | #2
> Add RTE_LIBRTE_PMD_BOND for meson build
> 
> Signed-off-by: JiangYu <yux.jiang@intel.com>

Applied

Patch
diff mbox series

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