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 12C0EA04B1; Fri, 4 Sep 2020 10:17:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A23D11C12A; Fri, 4 Sep 2020 10:17:52 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 423DAE07 for ; Fri, 4 Sep 2020 10:17:51 +0200 (CEST) IronPort-SDR: yLBI5C7qNSv2f2+i16Q1b6EAeej2n+tbozyrCpLvZbb7ZCncEqPf+yFehlTOXPenqvXE7c+ZCB 1gyUaxYpzx/Q== X-IronPort-AV: E=McAfee;i="6000,8403,9733"; a="175763327" X-IronPort-AV: E=Sophos;i="5.76,389,1592895600"; d="scan'208";a="175763327" 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:48 -0700 IronPort-SDR: ATBs/55o87KJiOlYKy53U3T0vjNErozK12tKh7u+1lK3Vr0GffMMnJc1HqLyeag9N4FInYNyCS 6DWDMpRpD7RA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,389,1592895600"; d="scan'208";a="315782791" 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:46 -0700 From: xizhan4x To: dts@dpdk.org Cc: xizhan4x Date: Fri, 4 Sep 2020 16:18:39 +0800 Message-Id: <1599207525-22123-32-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 32/38] tests/TestSuite_pvp_virtio_user_2M_hugepages.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_pvp_virtio_user_2M_hugepages.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_pvp_virtio_user_2M_hugepages.py b/tests/TestSuite_pvp_virtio_user_2M_hugepages.py index 0e7af54..c168546 100644 --- a/tests/TestSuite_pvp_virtio_user_2M_hugepages.py +++ b/tests/TestSuite_pvp_virtio_user_2M_hugepages.py @@ -76,13 +76,15 @@ class TestPVPVirtioWith2Mhuge(TestCase): self.pktgen_helper = PacketGeneratorHelper() self.pci_info = self.dut.ports_info[0]['pci'] self.number_of_ports = 1 + self.path=self.dut.apps_name['test-pmd'] + self.testpmd_name = self.path.split("/")[-1] def set_up(self): """ Run before each test case. """ self.dut.send_expect("rm -rf ./vhost-net*", "# ") - self.dut.send_expect("killall -s INT testpmd", "# ") + self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#") self.vhost_user = self.dut.new_session(suite="vhost-user") self.virtio_user = self.dut.new_session(suite="virtio-user") # Prepare the result table @@ -139,10 +141,9 @@ class TestPVPVirtioWith2Mhuge(TestCase): """ start testpmd on vhost """ - testcmd = self.dut.target + "/app/testpmd " vdev = ["net_vhost0,iface=vhost-net,queues=1"] eal_params = self.dut.create_eal_parameters(cores=self.core_list_vhost_user, prefix='vhost', ports=[self.pci_info], vdevs=vdev) - command_line_client = testcmd + eal_params + " -- -i" + command_line_client = self.path + eal_params + " -- -i" self.vhost_user.send_expect(command_line_client, "testpmd> ", 120) self.vhost_user.send_expect("start", "testpmd> ", 120) @@ -150,10 +151,9 @@ class TestPVPVirtioWith2Mhuge(TestCase): """ start testpmd on virtio """ - testcmd = self.dut.target + "/app/testpmd " vdev = 'net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net,queues=1' if not packed else 'net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net,queues=1,packed_vq=1' eal_params = self.dut.create_eal_parameters(cores=self.core_list_virtio_user, no_pci=True, prefix='virtio-user', vdevs=[vdev]) - command_line_user = testcmd + eal_params + ' --single-file-segments -- -i' + command_line_user = self.path + eal_params + ' --single-file-segments -- -i' self.virtio_user.send_expect(command_line_user, "testpmd> ", 120) self.virtio_user.send_expect("set fwd mac", "testpmd> ", 120) self.virtio_user.send_expect("start", "testpmd> ", 120) @@ -191,7 +191,7 @@ class TestPVPVirtioWith2Mhuge(TestCase): """ Run after each test case. """ - self.dut.send_expect("killall -s INT testpmd", "# ") + self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#") def tear_down_all(self): """ -- 1.8.3.1