From patchwork Tue Dec 8 10:06:16 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: 84805 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 DD927A09E5; Tue, 8 Dec 2020 11:04:06 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 44902C980; Tue, 8 Dec 2020 11:04:02 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id BB7E4C970 for ; Tue, 8 Dec 2020 11:03:59 +0100 (CET) IronPort-SDR: BloGJ19mIIbn0WHqnS+fZOHavaR930zAwaWVWxnK/I+rqWvCLshAGyGX51Oyto03w/nfivKeh7 054BzOjbdsgg== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293418" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293418" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:58 -0800 IronPort-SDR: XaNsHjcPI/5AF2ZhVdYVcJT4qTMiXWap5ayIsfT9y+ZNTgBBU0uoTAaoWbQ27ygw9nOYv4uuy7 yNQOhXB4Wpqg== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575828" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:57 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:16 +0800 Message-Id: <20201208100627.9792-18-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 17/28] tests/TestSuite_pmdpcap:Modify the hard coded app parameter to call the platform interface 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: Zhou Jun --- tests/TestSuite_pmdpcap.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_pmdpcap.py b/tests/TestSuite_pmdpcap.py index cec987ae..ed41082e 100644 --- a/tests/TestSuite_pmdpcap.py +++ b/tests/TestSuite_pmdpcap.py @@ -126,15 +126,15 @@ class TestPmdPcap(TestCase): two_cores = self.dut.get_core_list("1S/2C/1T") core_mask = utils.create_mask(two_cores) + eal_para = self.dut.create_eal_parameters(cores='1S/2C/1T') self.create_pcap_file(in_pcap, TestPmdPcap.pcap_file_sizes[0]) self.dut.session.copy_file_to(in_pcap) - command = ("{} -c {} -n {} " + + command = ("{} {} " + "--vdev=eth_pcap0,rx_pcap={},tx_pcap={} " + "-- -i --port-topology=chained --no-flush-rx") - self.dut.send_expect(command.format(self.path, core_mask, - self.memory_channel, + self.dut.send_expect(command.format(self.path, eal_para, TestPmdPcap.dut_pcap_files_path + in_pcap, out_pcap), 'testpmd> ', 15) @@ -157,18 +157,18 @@ class TestPmdPcap(TestCase): four_cores = self.dut.get_core_list("1S/4C/1T") core_mask = utils.create_mask(four_cores) + eal_para = self.dut.create_eal_parameters(cores='1S/4C/1T') self.create_pcap_file(in_pcap1, TestPmdPcap.pcap_file_sizes[0]) self.dut.session.copy_file_to(in_pcap1) self.create_pcap_file(in_pcap2, TestPmdPcap.pcap_file_sizes[1]) self.dut.session.copy_file_to(in_pcap2) - command = ("{} -c {} -n {} " + + command = ("{} {} " + "--vdev=eth_pcap0,rx_pcap={},tx_pcap={} " + "--vdev=eth_pcap1,rx_pcap={},tx_pcap={} " + "-- -i --no-flush-rx") - self.dut.send_expect(command.format(self.path, core_mask, - self.memory_channel, + self.dut.send_expect(command.format(self.path, eal_para, TestPmdPcap.dut_pcap_files_path + in_pcap1, out_pcap1,