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 62213A04EF; Tue, 2 Jun 2020 07:49:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 591061BFE3; Tue, 2 Jun 2020 07:49:34 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 313FC1BFB9 for ; Tue, 2 Jun 2020 07:49:33 +0200 (CEST) IronPort-SDR: 668JqE3JTLw0miX4CSuIfXerL9KbHFWJjjEEV1vLkHQjJ18bPHvE0X57cIjlVICBkPPWAV+CCv d5GJbyhH4P8A== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2020 22:49:32 -0700 IronPort-SDR: RUgE00YYmy7cBhiJgi6jDfB+mKkJDnwy+RLZD3fmLrYlUHYn54Hc/caip37A3EK9KOlzurSo5b 4wnnJjHHmrmA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,463,1583222400"; d="scan'208";a="268578626" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga003.jf.intel.com with ESMTP; 01 Jun 2020 22:49:31 -0700 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 1 Jun 2020 22:49:31 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 1 Jun 2020 22:48:28 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.85]) by SHSMSX104.ccr.corp.intel.com ([10.239.4.70]) with mapi id 14.03.0439.000; Tue, 2 Jun 2020 13:48:25 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V2]unit_tests_pmd_perf: update script according to dpdk update Thread-Index: AQHWKpLgEadL7rjhi06G8Igd4VHrUKjE7a/Q Date: Tue, 2 Jun 2020 05:48:24 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC56EF5@SHSMSX101.ccr.corp.intel.com> References: <1589530898-229383-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1589530898-229383-1-git-send-email-qimaix.xiao@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V2]unit_tests_pmd_perf: update script according to dpdk update 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai > Sent: Friday, May 15, 2020 4:22 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V2]unit_tests_pmd_perf: update script according to > dpdk update >=20 > *. CONFIG_RTE_IXGBE_INC_VECTOR has been deleted in dpdk >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_unit_tests_pmd_perf.py | 28 ++++------------------------ > 1 file changed, 4 insertions(+), 24 deletions(-) >=20 > diff --git a/tests/TestSuite_unit_tests_pmd_perf.py > b/tests/TestSuite_unit_tests_pmd_perf.py > index a01cf4e..f8b36d1 100644 > --- a/tests/TestSuite_unit_tests_pmd_perf.py > +++ b/tests/TestSuite_unit_tests_pmd_perf.py > @@ -35,7 +35,6 @@ DPDK Test suite. > This TestSuite runs the unit tests included in DPDK for pmd performance. > """ >=20 > -import utils > import re > from test_case import TestCase >=20 > @@ -61,23 +60,11 @@ class TestUnitTestsPmdPerf(TestCase): > """ > self.dut_ports =3D self.dut.get_ports(self.nic) > self.verify(len(self.dut_ports) >=3D 1, "Insufficient ports for = testing") > - [self.arch, machine, _, toolchain] =3D self.target.split('-') > + self.arch =3D self.target.split('-')[0] > self.verify(self.arch in ["x86_64", "arm64"], "pmd perf request = running > in x86_64 or arm64") > self.burst_ctlmodes =3D ['poll_before_xmit', 'poll_after_xmit'] > self.rxtx_modes =3D ['vector', 'scalar', 'full', 'hybrid'] > self.anchors =3D ['rxtx', 'rxonly', 'txonly'] > - > - # for better scalar performance data, need disable > CONFIG_RTE_IXGBE_INC_VECTOR > - [arch, machine, _, toolchain] =3D self.target.split('-') > - self.dut.send_expect("sed -i -e > 's/CONFIG_RTE_IXGBE_INC_VECTOR=3Dy/CONFIG_RTE_IXGBE_INC_VECTOR=3Dn/ > ' config/common_base", "# ", 30) > - self.dut.build_install_dpdk(self.target) > - out =3D self.dut.build_dpdk_apps('./app/test/') > - self.verify('make: Leaving directory' in out, "Compilation faile= d") > - self.dut.send_expect("mv -f ./app/test/test ./app/test/test_scal= ar", "# ") > - self.dut.send_expect("sed -i -e > 's/CONFIG_RTE_IXGBE_INC_VECTOR=3Dn/CONFIG_RTE_IXGBE_INC_VECTOR=3Dy/ > ' config/common_base", "# ", 30) > - self.dut.build_install_dpdk(self.target) > - out =3D self.dut.build_dpdk_apps('./app/test/') > - self.verify('make: Leaving directory' in out, "Compilation faile= d") > socket_id =3D self.dut.ports_info[0]['port'].socket > self.cores =3D self.dut.get_core_list(config=3D'1S/4C/1T', socke= t=3Dsocket_id) >=20 > @@ -93,7 +80,7 @@ class TestUnitTestsPmdPerf(TestCase): > """ >=20 > eal_params =3D self.dut.create_eal_parameters(cores=3Dself.cores= , > ports=3D[0,1]) > - self.dut.send_expect("./app/test/test %s" % (eal_params), > "R.*T.*E.*>.*>", 60) > + self.dut.send_expect("./%s/app/test %s" % (self.target, > + eal_params), "R.*T.*E.*>.*>", 60) > for mode in self.burst_ctlmodes: > self.dut.send_expect("set_rxtx_sc %s" % mode, "RTE>>", 10) > out =3D self.dut.send_expect("pmd_perf_autotest", "RTE>>", 1= 20) @@ - > 115,13 +102,8 @@ class TestUnitTestsPmdPerf(TestCase): > self.result_table_create(self.table_header) > eal_params =3D self.dut.create_eal_parameters(cores=3Dself.cores= , > ports=3D[0,1]) > print((self.table_header)) > - > + self.dut.send_expect("./%s/app/test %s" % (self.target, > + eal_params), "R.*T.*E.*>.*>", 60) > for mode in self.rxtx_modes: > - if mode is "scalar": > - self.dut.send_expect("./app/test/test_scalar %s " % (eal= _params), > "R.*T.*E.*>.*>", 60) > - else: > - self.dut.send_expect("./app/test/test %s " % (eal_params= ), > "R.*T.*E.*>.*>", 60) > - > table_row =3D [mode] > self.dut.send_expect("set_rxtx_sc continuous", "RTE>>", 10) > self.dut.send_expect("set_rxtx_mode %s" % mode, "RTE>>",10) = @@ - > 133,10 +115,8 @@ class TestUnitTestsPmdPerf(TestCase): > result =3D m.search(out) > self.verify(result, "Failed to get result") > table_row.append(result.group(1)) > - > - self.dut.send_expect("quit", "# ") > self.result_table_add(table_row) > - > + self.dut.send_expect("quit", "# ") > self.result_table_print() >=20 > def tear_down(self): > -- > 1.8.3.1