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 A6068A09E5; Tue, 8 Dec 2020 11:04:15 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 97D96C98C; Tue, 8 Dec 2020 11:04:11 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 7986AC9E2 for ; Tue, 8 Dec 2020 11:04:08 +0100 (CET) IronPort-SDR: EVqWbEP+N1GRLRl3zrOPppO8Kid3ZhV1FkfExFobHug4cIFWkrnU7B33NhzvaEopPUS01ibs0+ wZjuzsV4cSaA== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293439" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293439" 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:04:07 -0800 IronPort-SDR: ifg2AjpPCMhzOmCybP7euW5a/oM37QMrLYPdvzKzxVJ/xuNg0yGq43IbMT9Kc1LzwWK++oU1fs taJ2MsqYTNdQ== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575946" 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:04:06 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:22 +0800 Message-Id: <20201208100627.9792-24-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 23/28] tests/TestSuite_short_live: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_short_live.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_short_live.py b/tests/TestSuite_short_live.py index 88fc3bf2..525be9d3 100644 --- a/tests/TestSuite_short_live.py +++ b/tests/TestSuite_short_live.py @@ -67,6 +67,7 @@ class TestShortLiveApp(TestCase): self.app_l2fwd_path = self.dut.apps_name['l2fwd'] self.app_l3fwd_path = self.dut.apps_name['l3fwd'] self.app_testpmd = self.dut.apps_name['test-pmd'] + self.eal_para = self.dut.create_eal_parameters() def set_up(self): """ @@ -141,7 +142,7 @@ class TestShortLiveApp(TestCase): Basic rx/tx forwarding test """ #dpdk start - self.dut.send_expect("./%s -c 0xf -n 4 -- -i --portmask=0x3" % self.app_testpmd, "testpmd>", 120) + self.dut.send_expect("./%s %s -- -i --portmask=0x3" % (self.app_testpmd, self.eal_para), "testpmd>", 120) time.sleep(5) self.dut.send_expect("set fwd mac", "testpmd>") self.dut.send_expect("set promisc all off", "testpmd>") @@ -160,7 +161,8 @@ class TestShortLiveApp(TestCase): """ time = [] regex = re.compile(".* (\d+:\d{2}\.\d{2}).*") - out = self.dut.send_expect("echo quit | time ./%s -c 0x3 -n 4 --no-pci -- -i" % self.app_testpmd, "#", 120) + eal_para = self.dut.create_eal_parameters(no_pci=True) + out = self.dut.send_expect("echo quit | time ./%s %s -- -i" % (self.app_testpmd, eal_para), "#", 120) time = regex.findall(out) if time != []: @@ -173,7 +175,7 @@ class TestShortLiveApp(TestCase): for i in range(repeat_time): #dpdk start print("clean_up_with_signal_testpmd round %d" % (i + 1)) - self.dut.send_expect("./%s -c 0xf -n 4 -- -i --portmask=0x3" % self.app_testpmd, "testpmd>", 120) + self.dut.send_expect("./%s %s -- -i --portmask=0x3" % (self.app_testpmd, self.eal_para), "testpmd>", 120) self.dut.send_expect("set fwd mac", "testpmd>") self.dut.send_expect("set promisc all off", "testpmd>") self.dut.send_expect("start", "testpmd>") @@ -198,7 +200,7 @@ class TestShortLiveApp(TestCase): for i in range(repeat_time): #dpdk start print("clean_up_with_signal_l2fwd round %d" % (i + 1)) - self.dut.send_expect("%s -n 4 -c 0xf -- -p 0x3 &" % self.app_l2fwd_path, "L2FWD: entering main loop", 60) + self.dut.send_expect("%s %s -- -p 0x3 &" % (self.app_l2fwd_path, self.eal_para), "L2FWD: entering main loop", 60) self.check_forwarding([0, 1], self.nic) # kill with different Signal @@ -214,7 +216,7 @@ class TestShortLiveApp(TestCase): for i in range(repeat_time): #dpdk start print("clean_up_with_signal_l3fwd round %d" % (i + 1)) - self.dut.send_expect("%s -n 4 -c 0xf -- -p 0x3 --config='(0,0,1),(1,0,2)' &" % self.app_l3fwd_path, "L3FWD: entering main loop", 120) + self.dut.send_expect("%s %s -- -p 0x3 --config='(0,0,1),(1,0,2)' &" % (self.app_l3fwd_path, self.eal_para), "L3FWD: entering main loop", 120) self.check_forwarding([0, 0], self.nic) # kill with different Signal -- 2.17.1