From patchwork Tue Dec 8 10:06:11 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: 84799 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 F1196A09E5; Tue, 8 Dec 2020 11:03:58 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 37DD3C926; Tue, 8 Dec 2020 11:03:54 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 27A05C926 for ; Tue, 8 Dec 2020 11:03:51 +0100 (CET) IronPort-SDR: hBS+Je/rhmoWRKVKo56Al2lpZH/xkAFFrp7KiLGFwXhn7v+fq1kXQrgzyDIKtTZKQVdcni9H9K Y9z7VIG1hQtA== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293384" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293384" 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:51 -0800 IronPort-SDR: cdiwK+BzRpT0LLRjfIoq6B+9Xk+pTr/ddaKNaZWJoWNAs5/rxPWpNartFA+nlB/DPNzi0w45G/ uPxS3CTvRlbw== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575737" 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:50 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:11 +0800 Message-Id: <20201208100627.9792-13-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 12/28] tests/TestSuite_link_status_interrupt: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_link_status_interrupt.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/tests/TestSuite_link_status_interrupt.py b/tests/TestSuite_link_status_interrupt.py index 99783544..e5fd69ed 100644 --- a/tests/TestSuite_link_status_interrupt.py +++ b/tests/TestSuite_link_status_interrupt.py @@ -54,6 +54,7 @@ class TestLinkStatusInterrupt(TestCase): cores = self.dut.get_core_list("1S/4C/1T") self.coremask = utils.create_mask(cores) self.portmask = utils.create_mask(self.dut_ports) + self.eal_para = self.dut.create_eal_parameters(cores='1S/4C/1T') self.app_link_status_interrupt_path = self.dut.apps_name['link_status_interrupt'] # build sample app @@ -94,8 +95,8 @@ class TestLinkStatusInterrupt(TestCase): """ if self.drivername == "igb_uio": - cmdline = self.app_link_status_interrupt_path + " -c %s -n %s -- -p %s " % ( - self.coremask, self.dut.get_memory_channels(), self.portmask) + cmdline = self.app_link_status_interrupt_path + " %s -- -p %s " % ( + self.eal_para, self.portmask) for mode in self.basic_intr_mode: self.dut.send_expect("rmmod -f igb_uio", "#", 20) self.dut.send_expect( @@ -110,8 +111,8 @@ class TestLinkStatusInterrupt(TestCase): self.dut.send_expect("^C", "#", 60) elif self.drivername == "vfio-pci": for mode in self.basic_intr_mode: - cmdline = self.app_link_status_interrupt_path + " -c %s -n %s --vfio-intr=%s -- -p %s" % ( - self.coremask, self.dut.get_memory_channels(), mode, self.portmask) + cmdline = self.app_link_status_interrupt_path + " %s --vfio-intr=%s -- -p %s" % ( + self.eal_para, mode, self.portmask) self.dut.send_expect(cmdline, "statistics", 120) self.set_link_status_and_verify(self.dut_ports[0], 'Down') self.set_link_status_and_verify(self.dut_ports[0], 'Up') @@ -123,8 +124,8 @@ class TestLinkStatusInterrupt(TestCase): sent packet, check packets received. """ if self.drivername == "igb_uio": - cmdline = self.app_link_status_interrupt_path + " -c %s -n %s -- -p %s " % ( - self.coremask, self.dut.get_memory_channels(), self.portmask) + cmdline = self.app_link_status_interrupt_path + "%s -- -p %s " % ( + self.eal_para, self.portmask) for mode in self.basic_intr_mode: self.dut.send_expect("rmmod -f igb_uio", "#", 20) self.dut.send_expect( @@ -147,8 +148,8 @@ class TestLinkStatusInterrupt(TestCase): self.dut.send_expect("^C", "#", 60) elif self.drivername == "vfio-pci": for mode in self.basic_intr_mode: - cmdline = self.app_link_status_interrupt_path + " -c %s -n %s --vfio-intr=%s -- -p %s" % ( - self.coremask, self.dut.get_memory_channels(), mode, self.portmask) + cmdline = self.app_link_status_interrupt_path + " %s --vfio-intr=%s -- -p %s" % ( + self.eal_para, mode, self.portmask) self.dut.send_expect(cmdline, "Aggregate statistics", 60) for port in self.dut_ports: self.set_link_status_and_verify(