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 1B053A04C5; Fri, 4 Sep 2020 10:17:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 125881C0CE; Fri, 4 Sep 2020 10:17:22 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id BA9BD1C0BC for ; Fri, 4 Sep 2020 10:17:19 +0200 (CEST) IronPort-SDR: +peILORpJ4ggxZjp2DhSPUV3z9wAMbTbAD/Db1GxqMsaxswnDoeGXSVjhO/3POlEt3yC6kC0g2 6ZCM4JpQ5HLw== X-IronPort-AV: E=McAfee;i="6000,8403,9733"; a="175763273" X-IronPort-AV: E=Sophos;i="5.76,389,1592895600"; d="scan'208";a="175763273" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Sep 2020 01:17:17 -0700 IronPort-SDR: Gf6/wJW6LmnanBm+GWDMgzixUYuCaM30n1nkK1/b41KfZ+G8x2H5AhVGyjrYGSQ1jQ3z3R46oJ 3dGnv52Q7ssw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,389,1592895600"; d="scan'208";a="315782622" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.182.150]) by orsmga002.jf.intel.com with ESMTP; 04 Sep 2020 01:17:16 -0700 From: xizhan4x To: dts@dpdk.org Cc: xizhan4x Date: Fri, 4 Sep 2020 16:18:17 +0800 Message-Id: <1599207525-22123-10-git-send-email-xix.zhang@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1599207525-22123-1-git-send-email-xix.zhang@intel.com> References: <1599207525-22123-1-git-send-email-xix.zhang@intel.com> Subject: [dts] [dts 10/38] tests-TestSuite_hotplug_mp.py:support 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" Signed-off-by: xizhan4x --- tests/TestSuite_hotplug_mp.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/tests/TestSuite_hotplug_mp.py b/tests/TestSuite_hotplug_mp.py index 4cb5ce5..e9abe4f 100644 --- a/tests/TestSuite_hotplug_mp.py +++ b/tests/TestSuite_hotplug_mp.py @@ -23,7 +23,8 @@ class TestHotplugMp(TestCase): self.verify(len(self.dut_ports) >= 1, "Insufficient ports") self.intf0 = self.dut.ports_info[0]['intf'] self.pci0 = self.dut.ports_info[0]['pci'] - out = self.dut.build_dpdk_apps("./examples/multi_process/") + out = self.dut.build_dpdk_apps("./examples/multi_process/hotplug_mp") + self.app_path=self.dut.apps_name['hotplug_mp'] self.verify('Error' not in out, "Compilation failed") # Start one new session to run primary process self.session_pri = self.dut.new_session() @@ -48,16 +49,16 @@ class TestHotplugMp(TestCase): if self.drivername in ["igb_uio"]: self.iova_param = "--iova-mode=pa" out = self.session_pri.send_expect( - "./examples/multi_process/hotplug_mp/%s/hotplug_mp %s --proc-type=auto" - % (self.target, self.iova_param), "example>") + "%s %s --proc-type=auto" + % (self.app_path, self.iova_param), "example>") self.verify("Auto-detected process type: PRIMARY" in out, "Failed to setup primary process!") for out in [self.session_sec_1.send_expect( - "./examples/multi_process/hotplug_mp/%s/hotplug_mp %s --proc-type=auto" - % (self.target, self.iova_param), "example>"), + "%s %s --proc-type=auto" + % (self.app_path, self.iova_param), "example>"), self.session_sec_2.send_expect( - "./examples/multi_process/hotplug_mp/%s/hotplug_mp %s --proc-type=auto" - % (self.target, self.iova_param), "example>")]: + "%s %s --proc-type=auto" + % (self.app_path, self.iova_param), "example>")]: self.verify("Auto-detected process type: SECONDARY" in out, "Failed to setup secondary process!") @@ -328,10 +329,11 @@ class TestHotplugMp(TestCase): """ vdev = "net_virtio_user0" self.path = "/home/vhost-net" + pmd_path=self.dut.apps_name['test-pmd'] self.session_vhost.send_expect("rm -rf %s" % self.path, "#") eal_param = self.dut.create_eal_parameters(no_pci=True, prefix='vhost',vdevs=["eth_vhost0,iface=%s" % self.path]) param = ' -- -i' - testpmd_cmd = "./%s/app/testpmd " % self.target + eal_param + param + testpmd_cmd = "%s " % pmd_path + eal_param + param self.session_vhost.send_expect(testpmd_cmd, 'testpmd> ', timeout=60) try: self.attach_detach_vdev("pri", "hotplug", 1, vdev, iface="mac=00:01:02:03:04:05,path=%s,packed_vq=1,mrg_rxbuf=1,in_order=0" % self.path) -- 1.8.3.1