From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1ED36A04C0; Tue, 29 Sep 2020 11:25:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0534B1D8CE; Tue, 29 Sep 2020 11:25:30 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id DE7641D735 for ; Tue, 29 Sep 2020 11:25:26 +0200 (CEST) IronPort-SDR: sLqtvzpklfr00YEoKihXjimfBNnI6x5oW/qto1UIhZRhT3N1YU/CbLVFrB4wCV1j4mDqhY2lpy +PJ33z8vynLg== X-IronPort-AV: E=McAfee;i="6000,8403,9758"; a="161378885" X-IronPort-AV: E=Sophos;i="5.77,318,1596524400"; d="scan'208";a="161378885" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2020 02:25:24 -0700 IronPort-SDR: ZocOdP4TkcNR/+1kjdZ1T5W4CvrZeiXaENcj5X41ughr5mWq7wfw8WPTpEoMfaXyVAy0G1QlDE Ac5gxDQ30KUA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,318,1596524400"; d="scan'208";a="324611512" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 29 Sep 2020 02:25:23 -0700 From: JiangYuX To: dts@dpdk.org Cc: JiangYu Date: Tue, 29 Sep 2020 17:26:13 +0800 Message-Id: <20200929092613.17645-2-yux.jiang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200929092613.17645-1-yux.jiang@intel.com> References: <20200929092613.17645-1-yux.jiang@intel.com> Subject: [dts] [PATCH V1] tests/TestSuite_pvp_virtio_bonding: add RTE_LIBRTE_PMD_BOND for meson build X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" From: JiangYu Add RTE_LIBRTE_PMD_BOND for meson build Signed-off-by: JiangYu --- 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