From patchwork Fri Sep 11 02:57:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xie, WeiX" X-Patchwork-Id: 77305 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 0255DA04B6; Fri, 11 Sep 2020 04:59:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E29A31B9B7; Fri, 11 Sep 2020 04:59:53 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id F4029E07 for ; Fri, 11 Sep 2020 04:59:51 +0200 (CEST) IronPort-SDR: xbZcp2hPjC2rulq2QmVglV+kSbmxP887eVjqxM/j5tJ70yzVHTuC6WK3k14Ld0c6QypLOTRXLg HvJLyf+wse0g== X-IronPort-AV: E=McAfee;i="6000,8403,9740"; a="222881661" X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="222881661" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2020 19:59:51 -0700 IronPort-SDR: LBmtEYCFxyIH0wDlgt26UpMLA/AYr4dWgrQnhMjw9vKnIsP2B+2TVR7BCs8KF8zw9e/+15VdGS ekoO/LBPu37w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="318135470" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 10 Sep 2020 19:59:50 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Fri, 11 Sep 2020 10:57:54 +0800 Message-Id: <20200911025758.9246-2-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200911025758.9246-1-weix.xie@intel.com> References: <20200911025758.9246-1-weix.xie@intel.com> Subject: [dts] [PATCH V1 1/5] tests/TestSuite_iavf_package_driver_error_handle:support meson build method 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: Xie wei --- tests/TestSuite_iavf_package_driver_error_handle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestSuite_iavf_package_driver_error_handle.py b/tests/TestSuite_iavf_package_driver_error_handle.py index a59b933..d155afc 100644 --- a/tests/TestSuite_iavf_package_driver_error_handle.py +++ b/tests/TestSuite_iavf_package_driver_error_handle.py @@ -247,7 +247,7 @@ class Testiavf_package_and_driver_check(TestCase): for port in self.sriov_vfs_port: port.bind_driver('vfio-pci') - testpmdcmd ='./x86_64-native-linuxapp-gcc/app/testpmd -l 6-9 -n 4 --file-prefix=vf -- -i --rxq=4 --txq=4 --nb-cores=2' + testpmdcmd = self.dut.apps_name['test-pmd'] + "-l 6-9 -n 4 --file-prefix=vf -- -i --rxq=4 --txq=4 --nb-cores=2" self.dut_testpmd.execute_cmd(testpmdcmd) out=self.dut_testpmd.execute_cmd('flow create 0 ingress pattern eth / ipv4 / end actions rss types l3-dst-only end key_len 0 queues end / end') self.verify("iavf_flow_create(): Failed to create flow" in out, "There should be '%s' in out: %s" % ("iavf_flow_create(): Failed to create flow", out)) From patchwork Fri Sep 11 02:57:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xie, WeiX" X-Patchwork-Id: 77306 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 1FEEEA04B5; Fri, 11 Sep 2020 04:59:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 193961C0B9; Fri, 11 Sep 2020 04:59:55 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 7303C1B9B7 for ; Fri, 11 Sep 2020 04:59:53 +0200 (CEST) IronPort-SDR: q4pjfzr8/RSKV4e7CvKu4BqbxEYsEjK3HIz6yt3KtcJeZ9psh4+L++vX8QE4auG+9+aI//3gld aveU4OrhGVyw== X-IronPort-AV: E=McAfee;i="6000,8403,9740"; a="222881662" X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="222881662" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2020 19:59:53 -0700 IronPort-SDR: kVuMoNyaQux/fEOwdsQp7KwOKPoYviNEOXxZfWpyCQep9Mf2Rb448jzFwVpxin/Ml42XPYq5W/ ysD1tctQ6q3A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="318135475" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 10 Sep 2020 19:59:51 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Fri, 11 Sep 2020 10:57:55 +0800 Message-Id: <20200911025758.9246-3-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200911025758.9246-1-weix.xie@intel.com> References: <20200911025758.9246-1-weix.xie@intel.com> Subject: [dts] [PATCH V1 2/5] tests/TestSuite_enable_package_download_in_ice_driver:support meson build method 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: Xie wei --- tests/TestSuite_enable_package_download_in_ice_driver.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_enable_package_download_in_ice_driver.py b/tests/TestSuite_enable_package_download_in_ice_driver.py index 5364975..b57eb79 100644 --- a/tests/TestSuite_enable_package_download_in_ice_driver.py +++ b/tests/TestSuite_enable_package_download_in_ice_driver.py @@ -53,6 +53,7 @@ class TestEnable_Package_Download_In_Ice_Driver(TestCase): self.dut_p0_mac = self.dut.get_mac_address(self.dut_ports[0]) self.tester_p0_mac = self.tester.get_mac(localPort0) self.dut_testpmd = PmdOutput(self.dut) + self.path = self.dut.apps_name['test-pmd'] self.pkg_file1 = '/lib/firmware/intel/ice/ddp/ice.pkg' self.pkg_file2 = '/lib/firmware/updates/intel/ice/ddp/ice.pkg' @@ -288,7 +289,7 @@ class TestEnable_Package_Download_In_Ice_Driver(TestCase): use wrong ice.pkg and start testpmd without "safe-mode-suppor", no port is loaded in testpmd """ self.use_correct_ice_pkg(flag="false") - cmd = "./%s/app/testpmd -c 0x7 -n 4 -- -i --nb-cores=8 --rxq=%s --txq=%s --port-topology=chained" % (self.target, self.PF_QUEUE, self.PF_QUEUE) + cmd = self.path + "-c 0x7 -n 4 -- -i --nb-cores=8 --rxq=%s --txq=%s --port-topology=chained" % (self.PF_QUEUE, self.PF_QUEUE) out = self.dut.send_expect(cmd, "#", 60) error_messages = ["ice_load_pkg(): failed to allocate buf of size 0 for package", \ "ice_dev_init(): Failed to load the DDP package,Use safe-mode-support=1 to enter Safe Mode"] @@ -340,7 +341,7 @@ class TestEnable_Package_Download_In_Ice_Driver(TestCase): self.generate_delete_specify_pkg(pkg_ver=self.new_pkgs[i], sn=self.nic_sn[i], key="true") eal_param = "-w %s " % self.nic_pci[0] + "-w %s " % self.nic_pci[1] + "--log-level=8" - out = self.dut_testpmd.execute_cmd("./%s/app/testpmd %s -- -i " % (self.target, eal_param)) + out = self.dut_testpmd.execute_cmd(self.path + eal_param + " -- -i ") self.dut_testpmd.quit() # Delete ice-.pkg to recover the ENV From patchwork Fri Sep 11 02:57:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xie, WeiX" X-Patchwork-Id: 77307 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 4923BA04B5; Fri, 11 Sep 2020 04:59:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 416CB1C0CE; Fri, 11 Sep 2020 04:59:57 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 9E3F0E07 for ; Fri, 11 Sep 2020 04:59:55 +0200 (CEST) IronPort-SDR: 6UvKqxSxfcCF4FAW7l1on7/qJrmzz2MBCbWof4evPrQFvCosdVPRc3EltHKTLL/5ViQXGU/gdc Ex+rlj5qz8jA== X-IronPort-AV: E=McAfee;i="6000,8403,9740"; a="222881666" X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="222881666" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2020 19:59:55 -0700 IronPort-SDR: LNfScvaSi6bKHWe6SyiQz6DXsb4UXoIZEQjNWNA0VJWl5WPLsO54zJVq0FK+1s0Y32q1GK4oKY GoFehKJDkDKw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="318135483" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 10 Sep 2020 19:59:53 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Fri, 11 Sep 2020 10:57:56 +0800 Message-Id: <20200911025758.9246-4-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200911025758.9246-1-weix.xie@intel.com> References: <20200911025758.9246-1-weix.xie@intel.com> Subject: [dts] [PATCH V1 3/5] tests/TestSuite_rteflow_priority:support meson build method 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: Xie wei --- tests/TestSuite_rteflow_priority.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/tests/TestSuite_rteflow_priority.py b/tests/TestSuite_rteflow_priority.py index 26e8d82..353dc8f 100644 --- a/tests/TestSuite_rteflow_priority.py +++ b/tests/TestSuite_rteflow_priority.py @@ -65,6 +65,7 @@ class TestRteflowPriority(TestCase): cores = self.dut.get_core_list("1S/5C/1T") self.coreMask = utils.create_mask(cores) self.portMask = utils.create_mask([self.dut_ports[0]]) + self.path = self.dut.apps_name['test-pmd'] def set_up(self): """ @@ -133,7 +134,7 @@ class TestRteflowPriority(TestCase): """ #start testpmd in pipeline mode # genarate eal - command = './%s/app/testpmd -c %s -n 4 -w %s,pipeline-mode-support=1 --log-level="ice,7" -- -i --portmask=%s --rxq=10 --txq=10' % (self.target, self.coreMask, self.dut.ports_info[0]['pci'], utils.create_mask([self.dut_ports[0]])) + command = self.path + '-c %s -n 4 -w %s,pipeline-mode-support=1 --log-level="ice,7" -- -i --portmask=%s --rxq=10 --txq=10' % (self.coreMask, self.dut.ports_info[0]['pci'], utils.create_mask([self.dut_ports[0]])) out = self.dut.send_expect(command, "testpmd> ", 120) self.logger.debug(out) @@ -200,7 +201,7 @@ class TestRteflowPriority(TestCase): """ #start testpmd without pipeline-mode-support parameter, check the testpmd is launch in non-pipeline mode - command = './%s/app/testpmd -c %s -n 4 -w %s --log-level="ice,7" -- -i --portmask=%s --rxq=10 --txq=10' % (self.target, self.coreMask, self.dut.ports_info[0]['pci'], utils.create_mask([self.dut_ports[0]])) + command = self.path + '-c %s -n 4 -w %s --log-level="ice,7" -- -i --portmask=%s --rxq=10 --txq=10' % (self.coreMask, self.dut.ports_info[0]['pci'], utils.create_mask([self.dut_ports[0]])) out = self.dut.send_expect(command, "testpmd> ", 120) self.logger.debug(out) @@ -212,7 +213,7 @@ class TestRteflowPriority(TestCase): self.dut.send_expect("quit", "#", 50) #restart testpmd with pipeline-mode-support=0, check the testpmd is launch in non-pipeline mode - command = './%s/app/testpmd -c %s -n 4 -w %s,pipeline-mode-support=0 --log-level="ice,7" -- -i --portmask=%s --rxq=10 --txq=10' % (self.target, self.coreMask, self.dut.ports_info[0]['pci'], utils.create_mask([self.dut_ports[0]])) + command = self.path + '-c %s -n 4 -w %s,pipeline-mode-support=0 --log-level="ice,7" -- -i --portmask=%s --rxq=10 --txq=10' % (self.coreMask, self.dut.ports_info[0]['pci'], utils.create_mask([self.dut_ports[0]])) out = self.dut.send_expect(command, "testpmd> ", 120) self.logger.debug(out) @@ -229,7 +230,7 @@ class TestRteflowPriority(TestCase): """ #start testpmd in pipeline mode - command = './%s/app/testpmd -c %s -n 4 -w %s,pipeline-mode-support=1 --log-level="ice,7" -- -i --portmask=%s --rxq=10 --txq=10' % (self.target, self.coreMask, self.dut.ports_info[0]['pci'], utils.create_mask([self.dut_ports[0]])) + command = self.path + '-c %s -n 4 -w %s,pipeline-mode-support=1 --log-level="ice,7" -- -i --portmask=%s --rxq=10 --txq=10' % (self.coreMask, self.dut.ports_info[0]['pci'], utils.create_mask([self.dut_ports[0]])) out = self.dut.send_expect(command, "testpmd> ", 120) self.logger.debug(out) @@ -246,7 +247,7 @@ class TestRteflowPriority(TestCase): """ #start testpmd in pipeline mode - command = './%s/app/testpmd -c %s -n 4 -w %s,pipeline-mode-support=1 --log-level="ice,7" -- -i --portmask=%s --rxq=10 --txq=10' % (self.target, self.coreMask, self.dut.ports_info[0]['pci'], utils.create_mask([self.dut_ports[0]])) + command = self.path + '-c %s -n 4 -w %s,pipeline-mode-support=1 --log-level="ice,7" -- -i --portmask=%s --rxq=10 --txq=10' % (self.coreMask, self.dut.ports_info[0]['pci'], utils.create_mask([self.dut_ports[0]])) out = self.dut.send_expect(command, "testpmd> ", 120) self.logger.debug(out) @@ -263,7 +264,7 @@ class TestRteflowPriority(TestCase): """ #start testpmd in pipeline mode - command = './%s/app/testpmd -c %s -n 4 -w %s,pipeline-mode-support=1 --log-level="ice,7" -- -i --portmask=%s --rxq=10 --txq=10' % (self.target, self.coreMask, self.dut.ports_info[0]['pci'], utils.create_mask([self.dut_ports[0]])) + command = self.path + '-c %s -n 4 -w %s,pipeline-mode-support=1 --log-level="ice,7" -- -i --portmask=%s --rxq=10 --txq=10' % (self.coreMask, self.dut.ports_info[0]['pci'], utils.create_mask([self.dut_ports[0]])) out = self.dut.send_expect(command, "testpmd> ", 120) self.logger.debug(out) @@ -280,7 +281,7 @@ class TestRteflowPriority(TestCase): """ #start testpmd in pipeline mode - command = './%s/app/testpmd -c %s -n 4 -w %s,pipeline-mode-support=1 --log-level="ice,7" -- -i --portmask=%s --rxq=10 --txq=10' % (self.target, self.coreMask, self.dut.ports_info[0]['pci'], utils.create_mask([self.dut_ports[0]])) + command = self.path + '-c %s -n 4 -w %s,pipeline-mode-support=1 --log-level="ice,7" -- -i --portmask=%s --rxq=10 --txq=10' % (self.coreMask, self.dut.ports_info[0]['pci'], utils.create_mask([self.dut_ports[0]])) out = self.dut.send_expect(command, "testpmd> ", 120) self.dut.send_expect("set fwd rxonly", "testpmd> ", 15) @@ -317,7 +318,7 @@ class TestRteflowPriority(TestCase): self.dut.send_expect("quit", "#", 50) #restart testpmd in pipeline mode - command = './%s/app/testpmd -c %s -n 4 -w %s,pipeline-mode-support=1 --log-level="ice,7" -- -i --portmask=%s --rxq=10 --txq=10' % (self.target, self.coreMask, self.dut.ports_info[0]['pci'], utils.create_mask([self.dut_ports[0]])) + command = self.path + '-c %s -n 4 -w %s,pipeline-mode-support=1 --log-level="ice,7" -- -i --portmask=%s --rxq=10 --txq=10' % (self.coreMask, self.dut.ports_info[0]['pci'], utils.create_mask([self.dut_ports[0]])) out = self.dut.send_expect(command, "testpmd> ", 120) self.logger.debug(out) From patchwork Fri Sep 11 02:57:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xie, WeiX" X-Patchwork-Id: 77308 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 6DE9BA04B5; Fri, 11 Sep 2020 04:59:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 657B01BFCD; Fri, 11 Sep 2020 04:59:58 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 10CEFE07 for ; Fri, 11 Sep 2020 04:59:56 +0200 (CEST) IronPort-SDR: 2opdabWidfVixHC8Sr6c6Hb51fwtyuL0l4DUN3Q79pLY/nuGlDeGHN6yjvmFho+oWFtSlR0L/E GMpFVyCenzHg== X-IronPort-AV: E=McAfee;i="6000,8403,9740"; a="222881667" X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="222881667" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2020 19:59:56 -0700 IronPort-SDR: svPZuDjglWXQnnV2R7jDgWuM42KsJDAWB4ndPpL55JFVAHkR7oRzym0lCz5I2R69OuyU5Tv07g Aa9Zauvr/oIQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="318135487" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 10 Sep 2020 19:59:55 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Fri, 11 Sep 2020 10:57:57 +0800 Message-Id: <20200911025758.9246-5-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200911025758.9246-1-weix.xie@intel.com> References: <20200911025758.9246-1-weix.xie@intel.com> Subject: [dts] [PATCH V1 4/5] tests/TestSuite_iavf_fdir:support meson build method 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: Xie wei --- tests/TestSuite_iavf_fdir.py | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/tests/TestSuite_iavf_fdir.py b/tests/TestSuite_iavf_fdir.py index eaea13f..3deadff 100644 --- a/tests/TestSuite_iavf_fdir.py +++ b/tests/TestSuite_iavf_fdir.py @@ -1993,6 +1993,7 @@ class TestIAVFFdir(TestCase): self.pkt = Packet() self.pmd_output = PmdOutput(self.dut) + self.path = self.dut.apps_name['test-pmd'] self.src_file_dir = 'dep/' self.dut_file_dir = '/tmp/' @@ -2563,12 +2564,12 @@ class TestIAVFFdir(TestCase): m1 = p.search(out_pf1) eal_param = "-c 0xf -n 6 -w %s -w %s --file-prefix=pf0" % (self.sriov_vfs_pf0[0].pci,self.sriov_vfs_pf0[1].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={}".format(self.cvlq_num, self.cvlq_num)) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) self.dut.send_expect(command, "testpmd> ", 300) self.config_testpmd() eal_param = "-c 0xf0 -n 6 -w %s -w %s --file-prefix=pf1" % (self.sriov_vfs_pf1[0].pci,self.sriov_vfs_pf1[1].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={}".format(self.cvlq_num, self.cvlq_num)) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) self.session_secondary.send_expect(command, "testpmd> ", 300) #self.session_secondary.config_testpmd() self.session_secondary.send_expect("set fwd rxonly", "testpmd> ") @@ -2716,12 +2717,12 @@ class TestIAVFFdir(TestCase): m1 = p.search(out_pf1) eal_param = "-c 0xf -n 6 -w %s -w %s --file-prefix=pf0" % (self.sriov_vfs_pf0[0].pci,self.sriov_vfs_pf0[1].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={}".format(self.cvlq_num, self.cvlq_num)) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) self.dut.send_expect(command, "testpmd> ", 300) self.config_testpmd() eal_param = "-c 0xf0 -n 6 -w %s -w %s --file-prefix=pf1" % (self.sriov_vfs_pf1[0].pci,self.sriov_vfs_pf1[1].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={}".format(self.cvlq_num, self.cvlq_num)) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) self.session_secondary.send_expect(command, "testpmd> ", 300) #self.session_secondary.config_testpmd() self.session_secondary.send_expect("set fwd rxonly", "testpmd> ") @@ -2869,12 +2870,12 @@ class TestIAVFFdir(TestCase): m1 = p.search(out_pf1) eal_param = "-c 0xf -n 6 -w %s -w %s --file-prefix=pf0" % (self.sriov_vfs_pf0[0].pci,self.sriov_vfs_pf0[1].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={}".format(self.cvlq_num, self.cvlq_num)) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) self.dut.send_expect(command, "testpmd> ", 300) self.config_testpmd() eal_param = "-c 0xf0 -n 6 -w %s -w %s --file-prefix=pf1" % (self.sriov_vfs_pf1[0].pci,self.sriov_vfs_pf1[1].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={}".format(self.cvlq_num, self.cvlq_num)) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) self.session_secondary.send_expect(command, "testpmd> ", 300) #self.session_secondary.config_testpmd() self.session_secondary.send_expect("set fwd rxonly", "testpmd> ") @@ -3006,7 +3007,7 @@ class TestIAVFFdir(TestCase): self.dut.session.copy_file_to(self.src_file_dir + src_file, self.dut_file_dir) eal_param = "-c f -n 6 -w %s -w %s" % (self.sriov_vfs_pf0[0].pci,self.sriov_vfs_pf0[1].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={} --cmdline-file=%s".format(self.cvlq_num, self.cvlq_num) % self.dut_file_dir + src_file) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) + " --cmdline-file=%s" % self.dut_file_dir + src_file self.dut.send_expect(command, "testpmd> ", 300) self.config_testpmd() @@ -3076,7 +3077,7 @@ class TestIAVFFdir(TestCase): self.dut.session.copy_file_to(self.src_file_dir + src_file, self.dut_file_dir) eal_param = "-c f -n 6 -w %s -w %s" % (self.sriov_vfs_pf0[0].pci,self.sriov_vfs_pf1[0].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={} --cmdline-file=%s".format(self.cvlq_num, self.cvlq_num) % self.dut_file_dir + src_file) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) + " --cmdline-file=%s" % self.dut_file_dir + src_file self.dut.send_expect(command, "testpmd> ", 300) self.config_testpmd() @@ -3192,7 +3193,7 @@ class TestIAVFFdir(TestCase): # start testpmd with creating rules in commandline eal_param = "-c f -n 6 -w %s -w %s" % (self.sriov_vfs_pf0[0].pci,self.sriov_vfs_pf0[1].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={} --cmdline-file=%s".format(self.cvlq_num, self.cvlq_num) % self.dut_file_dir + src_file_vf) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) + " --cmdline-file=%s" % self.dut_file_dir + src_file_vf fdw = open("15360_rules_vf_result.txt", "w") fdw.write(self.dut.send_expect(command, "testpmd> ", 360)) fdw.close() @@ -3269,7 +3270,7 @@ class TestIAVFFdir(TestCase): self.dut.send_expect("ethtool -N %s flow-type tcp4 src-ip 192.168.100.0 dst-ip 192.168.100.2 src-port 32 dst-port 33 action 8" % self.pf1_intf, "Cannot insert RX class rule: No space left on device") # start testpmd with creating rules in commandline eal_param = "-c f -n 6 -w %s -w %s" % (self.sriov_vfs_pf0[0].pci,self.sriov_vfs_pf1[0].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={}".format(self.cvlq_num, self.cvlq_num)) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) self.dut.send_expect(command, "testpmd> ", 20) self.config_testpmd() @@ -3330,7 +3331,7 @@ class TestIAVFFdir(TestCase): self.verify(False, 'The number of ports is not supported') self.dut.send_expect("ip link set {} vf {} mac 00:11:22:33:44:55".format(self.pf0_intf, nex_cnt), '#') - command = "./%s/app/testpmd -c f -n 6 -- -i %s" % (self.dut.target, "--rxq=4 --txq=4") + command = self.path + " -c f -n 6 -- -i --rxq=4 --txq=4" self.dut.send_expect(command, "testpmd> ", 360) self.config_testpmd() @@ -3414,7 +3415,7 @@ class TestIAVFFdir(TestCase): self.dut.session.copy_file_to(self.src_file_dir + src_file, self.dut_file_dir) eal_param = "-c f -n 6 -w %s -w %s" % (self.sriov_vfs_pf0[0].pci,self.sriov_vfs_pf0[1].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={} --cmdline-file=%s".format(self.cvlq_num, self.cvlq_num) % self.dut_file_dir + src_file) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) + " --cmdline-file=%s" % self.dut_file_dir + src_file self.dut.send_expect(command, "testpmd> ", 900) self.config_testpmd() self.check_fdir_rule(port_id=0, stats=False) @@ -3449,7 +3450,7 @@ class TestIAVFFdir(TestCase): self.dut.session.copy_file_to(self.src_file_dir + src_file, self.dut_file_dir) eal_param = "-c f -n 6 -w %s -w %s" % (self.sriov_vfs_pf0[0].pci,self.sriov_vfs_pf0[1].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={} --cmdline-file=%s".format(self.cvlq_num, self.cvlq_num) % self.dut_file_dir + src_file) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) + " --cmdline-file=%s" % self.dut_file_dir + src_file self.dut.send_expect(command, "testpmd> ", 900) self.config_testpmd() self.check_fdir_rule(port_id=0, stats=False) From patchwork Fri Sep 11 02:57:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xie, WeiX" X-Patchwork-Id: 77309 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 90A94A04B5; Fri, 11 Sep 2020 04:59:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8B5541B75C; Fri, 11 Sep 2020 04:59:59 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 39686E07 for ; Fri, 11 Sep 2020 04:59:58 +0200 (CEST) IronPort-SDR: Kb9qrFV1q4qiwP4aga0RiPC4gw4W0hRJiTNU5AVRbpQn6TIT3hgkp3M98RnC86aI6xlkFda4i3 p9+ep3cEL33A== X-IronPort-AV: E=McAfee;i="6000,8403,9740"; a="222881668" X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="222881668" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2020 19:59:57 -0700 IronPort-SDR: 1TxDbUK/E+Vk3N9IxvbX+Mg1RrK9dDnqFA37cm+ro/T/7bmea9UTpTdqus3goy6ctSBUdhmAzm tHVGlzmya3AQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="318135493" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 10 Sep 2020 19:59:56 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Fri, 11 Sep 2020 10:57:58 +0800 Message-Id: <20200911025758.9246-6-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200911025758.9246-1-weix.xie@intel.com> References: <20200911025758.9246-1-weix.xie@intel.com> Subject: [dts] [PATCH V1 5/5] tests/TestSuite_dcf_lifecycle:support meson build method 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: Xie wei --- tests/TestSuite_dcf_lifecycle.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_dcf_lifecycle.py b/tests/TestSuite_dcf_lifecycle.py index 6be7b24..76c29f8 100644 --- a/tests/TestSuite_dcf_lifecycle.py +++ b/tests/TestSuite_dcf_lifecycle.py @@ -302,8 +302,7 @@ class TestDcfLifeCycle(TestCase): return output def init_vf_dcf_testpmd(self): - self.vf_dcf_testpmd = "{}/{}/app/testpmd".format( - self.target_dir, self.dut.target) + self.vf_dcf_testpmd = self.dut.apps_name['test-pmd'] def start_vf_dcf_testpmd(self, pmd_opiton): whitelist_name, prefix = pmd_opiton @@ -359,16 +358,15 @@ class TestDcfLifeCycle(TestCase): return output def create_vf_testpmd2(self): - self.vf_testpmd2 = "{}/{}/app/testpmd_vf".format( - self.target_dir, self.dut.target) - cmd = 'rm -f {vf_pmd2};cp {vf_dcf_pmd} {vf_pmd2}'.format( + self.vf_testpmd2 = self.dut.apps_name['testpmd_vf'] + cmd = 'rm -f /root/dpdk/{vf_pmd2};cp /root/dpdk/{vf_dcf_pmd} /root/dpdk/{vf_pmd2}'.format( **{'vf_dcf_pmd': self.vf_dcf_testpmd, 'vf_pmd2': self.vf_testpmd2}) self.d_a_con(cmd) def init_vf_testpmd2(self): self.create_vf_testpmd2() self.vf_pmd2_session_name = 'vf_testpmd2' - self.vf_pmd2_session = self.dut.create_session( + self.vf_pmd2_session = self.dut.new_session( self.vf_pmd2_session_name) def start_vf_testpmd2(self, pmd_opiton):