From patchwork Fri Sep 4 08:18:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang, XiX" X-Patchwork-Id: 76519 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 25614A04C5; Fri, 4 Sep 2020 10:17:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1DB281C0CC; Fri, 4 Sep 2020 10:17:38 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id DF463255 for ; Fri, 4 Sep 2020 10:17:35 +0200 (CEST) IronPort-SDR: f9jgAH0Bmqb5Vn+NMJVkpbYbjubZM1J7mYJWqjUl26CVtyJOULmXMYKgMyptuhd7t6hJtliZZd ornmMadiGirQ== X-IronPort-AV: E=McAfee;i="6000,8403,9733"; a="175763308" X-IronPort-AV: E=Sophos;i="5.76,389,1592895600"; d="scan'208";a="175763308" 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:35 -0700 IronPort-SDR: RrKAEXzVFcb872wwJ51fWotu/D9Nc8Qw3dft1Ws2bM9T94W4Qc1X6R+WBvBRCRy//YigyqqkT+ 4GgBr9h8fDqA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,389,1592895600"; d="scan'208";a="315782713" 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:34 -0700 From: xizhan4x To: dts@dpdk.org Cc: xizhan4x Date: Fri, 4 Sep 2020 16:18:30 +0800 Message-Id: <1599207525-22123-23-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 23/38] tests/TestSuite_pmdrss_hash.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_pmdrss_hash.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/tests/TestSuite_pmdrss_hash.py b/tests/TestSuite_pmdrss_hash.py index b3c1d66..7e6d0bf 100644 --- a/tests/TestSuite_pmdrss_hash.py +++ b/tests/TestSuite_pmdrss_hash.py @@ -442,6 +442,7 @@ class TestPmdrssHash(TestCase): self.verify(False, "NIC Unsupported:%s" % str(self.nic)) ports = self.dut.get_ports(self.nic) self.verify(len(ports) >= 1, "Not enough ports available") + self.path=self.dut.apps_name['test-pmd'] def set_up(self): """ @@ -461,8 +462,8 @@ class TestPmdrssHash(TestCase): # test with different rss queues self.dut.send_expect( - "./%s/app/testpmd -c %s -n %d -- -i --rxq=%d --txq=%d" % - (self.target, self.coremask, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120) + "%s -c %s -n %d -- -i --rxq=%d --txq=%d" % + (self.path, self.coremask, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120) for iptype, rsstype in list(iptypes.items()): self.dut.send_expect("set verbose 8", "testpmd> ") @@ -499,8 +500,8 @@ class TestPmdrssHash(TestCase): # test with different rss queues self.dut.send_expect( - "./%s/app/testpmd -c %s -n %d -- -i --rxq=%d --txq=%d" % - (self.target, self.coremask, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120) + "%s -c %s -n %d -- -i --rxq=%d --txq=%d" % + (self.path, self.coremask, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120) for iptype, rsstype in list(iptypes.items()): self.dut.send_expect("set verbose 8", "testpmd> ") @@ -544,8 +545,8 @@ class TestPmdrssHash(TestCase): # test with different rss queues self.dut.send_expect( - "./%s/app/testpmd -c %s -n %d -- -i --rxq=%d --txq=%d" % - (self.target, self.coremask, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120) + "%s -c %s -n %d -- -i --rxq=%d --txq=%d" % + (self.path, self.coremask, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120) for iptype, rsstype in list(iptypes.items()): self.logger.info("***********************%s rss test********************************" % iptype) @@ -584,8 +585,8 @@ class TestPmdrssHash(TestCase): # test with different rss queues self.dut.send_expect( - "./%s/app/testpmd -c %s -n %d -- -i --rxq=%d --txq=%d" % - (self.target, self.coremask, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120) + "%s -c %s -n %d -- -i --rxq=%d --txq=%d" % + (self.path, self.coremask, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120) for iptype, rsstype in list(iptypes.items()): self.dut.send_expect("set verbose 8", "testpmd> ") @@ -620,7 +621,7 @@ class TestPmdrssHash(TestCase): "fortpark_TLV","fortpark_BASE-T", "fortville_25g", "carlsville", "foxville"], "NIC Unsupported: " + str(self.nic)) - self.dut.send_expect("./%s/app/testpmd -c %s -n %d -- -i" % (self.target, self.coremask, self.dut.get_memory_channels()), "testpmd> ", 120) + self.dut.send_expect("%s -c %s -n %d -- -i" % (self.path, self.coremask, self.dut.get_memory_channels()), "testpmd> ", 120) self.dut.send_expect("set promisc all off", "testpmd> ") out = self.dut.send_expect("create bonded device 3 0", "testpmd> ", 30) bond_device_id = int(re.search("port \d+", out).group().split(" ")[-1].strip())