From patchwork Fri Sep 11 02:19:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xie, WeiX" X-Patchwork-Id: 77296 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 0E08BA04B5; Fri, 11 Sep 2020 04:19:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 020851C0D4; Fri, 11 Sep 2020 04:19:58 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id B33381B75C for ; Fri, 11 Sep 2020 04:19:56 +0200 (CEST) IronPort-SDR: 48qCMQk+IDBMdj69td/XACFWcM3Jdutojve1EGgKIYkvI1rKfmy8ZmKpiWzjzzBZiE12H1c4MK KQ5eWQYLEV4Q== X-IronPort-AV: E=McAfee;i="6000,8403,9740"; a="243499350" X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="243499350" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2020 19:19:55 -0700 IronPort-SDR: P8PIaObx0EDICsLU3n1Y+aWtqpJi3ShnJ7b/nZAyejsZIHlExXgM41DI/nUctxGWM+VIXfM/D4 rTdIShu7axCw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="318126645" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 10 Sep 2020 19:19:54 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Fri, 11 Sep 2020 10:19:25 +0800 Message-Id: <20200911021928.8224-3-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200911021928.8224-1-weix.xie@intel.com> References: <20200911021928.8224-1-weix.xie@intel.com> Subject: [dts] [PATCH V1 2/5] tests/TestSuite_cvl_dcf_switch_filter: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_cvl_dcf_switch_filter.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/TestSuite_cvl_dcf_switch_filter.py b/tests/TestSuite_cvl_dcf_switch_filter.py index d52e487..245e9df 100644 --- a/tests/TestSuite_cvl_dcf_switch_filter.py +++ b/tests/TestSuite_cvl_dcf_switch_filter.py @@ -1268,6 +1268,7 @@ class CVLDCFSwitchFilterTest(TestCase): #set vf driver self.vf_driver = 'vfio-pci' self.dut.send_expect('modprobe vfio-pci', '#') + self.path = self.dut.apps_name['test-pmd'] def setup_1pf_vfs_env(self, pf_port=0, driver='default'): @@ -1308,7 +1309,7 @@ class CVLDCFSwitchFilterTest(TestCase): vf0_pci = self.sriov_vfs_port_0[0].pci vf1_pci = self.sriov_vfs_port_0[1].pci all_eal_param = self.dut.create_eal_parameters(cores='1S/4C/1T',ports=[vf0_pci, vf1_pci], port_options={vf0_pci:"cap=dcf"}) - command = "./%s/app/testpmd %s -- -i" % (self.dut.target, all_eal_param) + command = self.path + all_eal_param + " -- -i" return command def launch_testpmd(self): @@ -1788,7 +1789,7 @@ class CVLDCFSwitchFilterTest(TestCase): vf1_pci = self.sriov_vfs_port_0[1].pci vf2_pci = self.sriov_vfs_port_0[2].pci all_eal_param = self.dut.create_eal_parameters(cores="1S/4C/1T", ports=[vf0_pci, vf1_pci, vf2_pci], port_options={vf0_pci:"cap=dcf"}) - command = "./%s/app/testpmd %s -- -i" % (self.dut.target, all_eal_param) + command = self.path + all_eal_param + " -- -i" out = self.dut.send_expect(command, "testpmd> ", 15) self.testpmd_status = "running" self.dut.send_expect("set portlist 1,2", "testpmd> ", 15) @@ -1839,7 +1840,7 @@ class CVLDCFSwitchFilterTest(TestCase): vf1_pci = self.sriov_vfs_port_0[1].pci vf2_pci = self.sriov_vfs_port_0[2].pci all_eal_param = self.dut.create_eal_parameters(cores="1S/4C/1T", ports=[vf0_pci, vf1_pci, vf2_pci], port_options={vf0_pci:"cap=dcf"}) - command = "./%s/app/testpmd %s -- -i" % (self.dut.target, all_eal_param) + command = self.path + all_eal_param + " -- -i" out = self.dut.send_expect(command, "testpmd> ", 15) self.testpmd_status = "running" self.dut.send_expect("set portlist 1,2", "testpmd> ", 15) @@ -1903,7 +1904,7 @@ class CVLDCFSwitchFilterTest(TestCase): vf1_pci = self.sriov_vfs_port_0[1].pci vf2_pci = self.sriov_vfs_port_0[2].pci all_eal_param = self.dut.create_eal_parameters(cores="1S/4C/1T", ports=[vf0_pci, vf1_pci, vf2_pci], port_options={vf0_pci:"cap=dcf"}) - command = "./%s/app/testpmd %s -- -i" % (self.dut.target, all_eal_param) + command = self.path + all_eal_param + " -- -i" out = self.dut.send_expect(command, "testpmd> ", 15) self.testpmd_status = "running" self.dut.send_expect("set portlist 1,2", "testpmd> ", 15) @@ -1955,7 +1956,7 @@ class CVLDCFSwitchFilterTest(TestCase): #launch testpmd vf0_pci = vf_pci[0] all_eal_param = self.dut.create_eal_parameters(cores="1S/4C/1T", ports=[vf0_pci], port_options={vf0_pci:"cap=dcf"}) - command = "./%s/app/testpmd %s -- -i" % (self.dut.target, all_eal_param) + command = self.path + all_eal_param + " -- -i" out = self.dut.send_expect(command, "testpmd> ", 15) self.testpmd_status = "running" #generate max_vf_number-1 rules to each vf and matched packets @@ -2049,7 +2050,7 @@ class CVLDCFSwitchFilterTest(TestCase): vf0_pci = self.sriov_vfs_port_0[0].pci vf1_pci = self.sriov_vfs_port_0[1].pci all_eal_param = self.dut.create_eal_parameters(cores="1S/4C/1T", ports=[vf0_pci, vf1_pci], port_options={vf0_pci:"cap=dcf"}) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, all_eal_param, "--cmdline-file=/tmp/testpmd_cmds_32k_switch_rules") + command = self.path + all_eal_param + " -- -i --cmdline-file=/tmp/testpmd_cmds_32k_switch_rules" out = self.dut.send_expect(command, "testpmd> ", 360) self.testpmd_status = "running" self.dut.send_expect("set portlist 1", "testpmd> ", 15) @@ -2143,7 +2144,7 @@ class CVLDCFSwitchFilterTest(TestCase): vf1_pci = self.sriov_vfs_port_0[1].pci vf2_pci = self.sriov_vfs_port_0[2].pci all_eal_param = self.dut.create_eal_parameters(cores="1S/4C/1T", ports=[vf0_pci, vf1_pci, vf2_pci], port_options={vf0_pci:"cap=dcf"}) - command = "./%s/app/testpmd %s -- -i" % (self.dut.target, all_eal_param) + command = self.path + all_eal_param + " -- -i" out = self.dut.send_expect(command, "testpmd> ", 15) self.testpmd_status = "running" self.dut.send_expect("set portlist 1,2", "testpmd> ", 15)