From patchwork Tue Sep 8 07:18:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 76855 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id ADAB6A04AA; Tue, 8 Sep 2020 09:29:52 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A63351C0DC; Tue, 8 Sep 2020 09:29:52 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id E85E52BAB for ; Tue, 8 Sep 2020 09:29:50 +0200 (CEST) IronPort-SDR: s/pTYLI4ChWkyDmgsgtiBNXlStJxwUJnzjCpbI9lksGhToFsnzPg0oacEc2u0g4xsl2saOaYav ujOAlGhU857g== X-IronPort-AV: E=McAfee;i="6000,8403,9737"; a="219646600" X-IronPort-AV: E=Sophos;i="5.76,404,1592895600"; d="scan'208";a="219646600" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Sep 2020 00:29:50 -0700 IronPort-SDR: 86dKrM9COBYDal6YBk5IphW7r07OiorlLGaYtSugjdMX1mtb/YquMm3YyftrjEVYpvNxp9+UTL dFrqlG9OBgdQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,404,1592895600"; d="scan'208";a="377432730" Received: from unknown (HELO localhost.localdomain) ([10.240.183.52]) by orsmga001.jf.intel.com with ESMTP; 08 Sep 2020 00:29:49 -0700 From: "Zhou, Jun" To: dts@dpdk.org Cc: Zhou jun Date: Tue, 8 Sep 2020 07:18:07 +0000 Message-Id: <20200908071825.118583-21-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200908071825.118583-1-junx.w.zhou@intel.com> References: <20200908071825.118583-1-junx.w.zhou@intel.com> MIME-Version: 1.0 Subject: [dts] [dts 20/38] tests/TestSuite_pvp_virtio_user_4k_pages.py: adapt to support both meson and makefile 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: Zhou jun Signed-off-by: Zhou jun --- tests/TestSuite_pvp_virtio_user_4k_pages.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_pvp_virtio_user_4k_pages.py b/tests/TestSuite_pvp_virtio_user_4k_pages.py index 9bfd526..4650499 100644 --- a/tests/TestSuite_pvp_virtio_user_4k_pages.py +++ b/tests/TestSuite_pvp_virtio_user_4k_pages.py @@ -80,6 +80,7 @@ class TestPvpVirtioUser4kPages(TestCase): # create an instance to set stream field setting self.pktgen_helper = PacketGeneratorHelper() self.number_of_ports = 1 + self.app_testpmd_path = self.dut.apps_name['test-pmd'] def set_up(self): """ @@ -141,7 +142,7 @@ class TestPvpVirtioUser4kPages(TestCase): """ Start testpmd on vhost """ - testcmd = self.dut.target + "/app/testpmd " + testcmd = self.app_testpmd_path + " " vdev = 'net_vhost0,iface=vhost-net,queues=1' para = " -- -i --no-numa --socket-num=%d" % self.ports_socket eal_params = self.dut.create_eal_parameters(cores=self.core_list_vhost_user, prefix='vhost', ports=[self.pci_info], vdevs=[vdev]) @@ -153,7 +154,7 @@ class TestPvpVirtioUser4kPages(TestCase): """ Start testpmd on virtio """ - testcmd = self.dut.target + "/app/testpmd " + testcmd = self.app_testpmd_path + " " 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,packed_vq=1,queues=1" eal_params = self.dut.create_eal_parameters(cores=self.core_list_virtio_user, prefix='virtio-user', ports=[self.pci_info], vdevs=[vdev]) command_line_user = testcmd + eal_params + ' --no-huge -m 1024 -- -i'