From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 496AFA09E5; Tue, 8 Dec 2020 11:03:45 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0CE2CA3; Tue, 8 Dec 2020 11:03:44 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 4181D98 for ; Tue, 8 Dec 2020 11:03:41 +0100 (CET) IronPort-SDR: PBFWjflb0j6wT0ZWTXhKR6tDc83SOsGoIyqeOaXsBF3pi4d0zNXz993cxNsf1EWRdcxDHCx1LS ZbmvewYyFPrg== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293343" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293343" 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:40 -0800 IronPort-SDR: U8GF/iAuvkGBuY5jBz5DytrOUjBsZn289Dgt4L7Dmy95KEoFIGzs7Cw6vDkg2Kpt8AbwQLjc3E p3ZLKdidkudg== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575565" 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:39 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:03 +0800 Message-Id: <20201208100627.9792-5-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 04/28] tests/TestSuite_interrupt_pmd: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_interrupt_pmd.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_interrupt_pmd.py b/tests/TestSuite_interrupt_pmd.py index 752c673a..e5e3751d 100644 --- a/tests/TestSuite_interrupt_pmd.py +++ b/tests/TestSuite_interrupt_pmd.py @@ -50,6 +50,7 @@ class TestInterruptPmd(TestCase): self.dut_ports = self.dut.get_ports(self.nic) self.verify(len(self.dut_ports) >= 2, "Insufficient ports") cores = self.dut.get_core_list("1S/4C/1T") + self.eal_para = self.dut.create_eal_parameters(cores='1S/4C/1T') self.coremask = utils.create_mask(cores) self.path = self.dut.apps_name["l3fwd-power"] @@ -88,21 +89,25 @@ class TestInterruptPmd(TestCase): pass def test_different_queue(self): - cmd = "%s -c %s -n 4 -- -p 0x3 -P --config='(0,0,1),(1,0,2)' "% (self.path, self.coremask) + cmd = "%s %s -- -p 0x3 -P --config='(0,0,1),(1,0,2)' "% (self.path, self.eal_para) self.dut.send_expect(cmd, "L3FWD_POWER", 60) portQueueLcore = self.trafficFlow["Flow1"] self.verifier_result(2, 2, portQueueLcore) self.dut.kill_all() - cmd = "%s -c 0x3f -n 4 -- -p 0x3 -P --config='(0,0,0),(0,1,1),(0,2,2),(0,3,3),(0,4,4)' "% self.path + cores = list(range(6)) + eal_para = self.dut.create_eal_parameters(cores=cores) + cmd = "%s %s -- -p 0x3 -P --config='(0,0,0),(0,1,1),(0,2,2),(0,3,3),(0,4,4)' "% (self.path, eal_para) self.dut.send_expect(cmd, "L3FWD_POWER", 120) portQueueLcore = self.trafficFlow["Flow2"] self.verifier_result(20, 1, portQueueLcore) self.dut.kill_all() - cmd = "%s -c 0xffffff -n 4 -- -p 0x3 -P --config='(0,0,0),(0,1,1),(0,2,2),(0,3,3),\ + cores = list(range(24)) + eal_para = self.dut.create_eal_parameters(cores=cores) + cmd = "%s %s -- -p 0x3 -P --config='(0,0,0),(0,1,1),(0,2,2),(0,3,3),\ (0,4,4),(0,5,5),(0,6,6),(0,7,7),(1,0,8),(1,1,9),(1,2,10),(1,3,11),\ - (1,4,12),(1,5,13),(1,6,14)' "% self.path + (1,4,12),(1,5,13),(1,6,14)' "% (self.path, eal_para) self.dut.send_expect(cmd, "L3FWD_POWER", 60) portQueueLcore = self.trafficFlow["Flow3"] -- 2.17.1