From: JiangYuX <yux.jiang@intel.com>
To: dts@dpdk.org
Cc: JiangYu <yux.jiang@intel.com>
Subject: [dts] [PATCH V1] tests/TestSuite_pvp_virtio_bonding: add RTE_LIBRTE_PMD_BOND for meson build
Date: Tue, 29 Sep 2020 17:26:13 +0800 [thread overview]
Message-ID: <20200929092613.17645-2-yux.jiang@intel.com> (raw)
In-Reply-To: <20200929092613.17645-1-yux.jiang@intel.com>
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(+)
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
next prev parent reply other threads:[~2020-09-29 9:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-29 9:26 [dts] [PATCH V1] TestSuite_vhost_event_idx_interrupt/kernelpf_iavf: get the app name to kill JiangYuX
2020-09-29 9:26 ` JiangYuX [this message]
2020-09-29 9:28 ` [dts] [PATCH V1] tests/TestSuite_pvp_virtio_bonding: add RTE_LIBRTE_PMD_BOND for meson build Jiang, YuX
2020-10-12 8:55 ` Tu, Lijuan
2020-10-12 8:54 ` [dts] [PATCH V1] TestSuite_vhost_event_idx_interrupt/kernelpf_iavf: get the app name to kill 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=20200929092613.17645-2-yux.jiang@intel.com \
--to=yux.jiang@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).