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 46AFEA00C3; Fri, 15 May 2020 11:15:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 33B1B1DAAA; Fri, 15 May 2020 11:15:12 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 3AC8F2AB for ; Fri, 15 May 2020 11:15:09 +0200 (CEST) IronPort-SDR: c0oaeROsjSiNph5HU82Q1QwcCs28msQb0sEnL8cwrhS2ohDzwAY1Nr23Hjaux8fECcIERWrdBA qDLv3QUCVfbQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 May 2020 02:15:08 -0700 IronPort-SDR: F9C8iOSgRHuWoUchiuA1qlvBgG531yx7dVyyYtYZ+natRRklh97WLeysDgK62XzD6akeKzkKxR WvqcZLVMLqLQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,394,1583222400"; d="scan'208";a="263134021" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga003.jf.intel.com with ESMTP; 15 May 2020 02:15:07 -0700 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 15 May 2020 02:15:07 -0700 Received: from FMSEDG001.ED.cps.intel.com (10.1.192.133) by fmsmsx118.amr.corp.intel.com (10.18.116.18) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 15 May 2020 02:15:07 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.169) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 15 May 2020 02:15:07 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OGLUu09lDr2woZYGebUG8vqrQ9sAavSmcQYHSMcSvmSOgKvUN+u94Z7lDPZPG0fda073wQaJ9Fmng+0rm4Sr0L9uYkAnvMByGukc9yaIMZeh86WfwWMem+sGEg4RQdhraSpVFBIZO4t2mQm7g1PUehzzx9QxYG9vurSrCgx9jv6AG9D7mLNNQ9bi2YocfGarpLXSfeK3CWTW7RG4d4bcbhb3savCDomiQ8pDDa1u6s+N0LhKRgtYsJLrV65JjnJlXsT+788v8zaHI/zRsk65P/x+6J/F4L9tLzwc/s1JvnK+iENFFXYUtAIEVEGwre7UNOWI29sOb3mrCI791n6ZZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Dd1VFc3RN0/AlBeziVNgqMLog54xZcPQVTUgeGN93co=; b=UVrHZ/ZrCBPuUbicEzlzcv62cWWnbD34JkYdaSW2ZSu/u8Po3HfK8m4Ya2ftCPGh6OTzS4Uh2KVyOPMuDImZi4FGJZEkosEDn65lg3DnKZuoCfGdkP4X4tCvjpfZe5jWlgA2EBxIZW7mgUCAko31M8WiCw9wiSsgR1ST9OKc21+tYPZa/Lt2rI362YCZA6A4HBi6mid0yGmGcTv/v9utrgDUJNX+gxeJ1YDTDJyzfjkbS27OuNkwWMQoe1FHTL2bPCVsruty3p8JE6JI4/Yse9Aa+lNUqM6JqYpM3stKA0zeKw6K4fd8mFtBC7JaG5iC9vs8uBJa3JqOrQfCoyY0DA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Dd1VFc3RN0/AlBeziVNgqMLog54xZcPQVTUgeGN93co=; b=iiEGgEui5I0p2f0zHZg45p4al3m1tXC+CMCxYjLfn/nxuyvUVNsyYL3g/YowmZAnYIFTFsyPhcEWJtoNBYrbnVKfm/PD3vAkKH7eQ+8FMq1Fuaw80rQPiS1EaKXWb7iV+r0kwtbiSkun7Nqdvq13TKlXEqDr2zz4McsVQWcPguc= Received: from MWHPR1101MB2254.namprd11.prod.outlook.com (2603:10b6:301:58::11) by MWHPR1101MB2317.namprd11.prod.outlook.com (2603:10b6:301:5b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.24; Fri, 15 May 2020 09:15:05 +0000 Received: from MWHPR1101MB2254.namprd11.prod.outlook.com ([fe80::f192:356f:89f:c71f]) by MWHPR1101MB2254.namprd11.prod.outlook.com ([fe80::f192:356f:89f:c71f%9]) with mapi id 15.20.3000.016; Fri, 15 May 2020 09:15:05 +0000 From: "Xiao, QimaiX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V2]unit_tests_pmd_perf: update script according to dpdk update Thread-Index: AQHWKpLj6IBYvKBAFUCixiAqCXd/uKio3Wvw Date: Fri, 15 May 2020 09:15:05 +0000 Message-ID: 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: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.37] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8fea3204-c7d7-42f6-0e5d-08d7f8b0750f x-ms-traffictypediagnostic: MWHPR1101MB2317: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:216; x-forefront-prvs: 04041A2886 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: bdH6E/JdqJzwfHmdV7+hXpFNRmTNMUKXp3lNeW2dDY3oM/wgA278IIwMQ325y0ZPLv4IL2Jc0ZstG/4b9dUtVRJr1GrkTwMAdcYqTRH23Tz6p6I9cZGixly2k0Csgk79ZnjLWwxEC944GUGBCkKDqZ+Tw9BB3/0ZHTtqXJJJQAQAtcK/jV3tJ5bgwur1Zq7PLwRxM1QiCQrowTRhqYnqHBo51R3CjkZpbuDD7MTCLYpD2vXG58hO2do4b+NhTozav/sdA0aOThy02IEXsGo5KJEhdLwzFZm1oi/A39i8g9BbYC28xbX/MBNR7vVCM+ee72qrAF0tUx5jx8sdGEu/XwiLx2OnH49oGJ5kEo3K4bdtCCiNr/qQxOqSeOi+sXDe4i072yDUirgq6yZ2nFi95ksw5SF8fWN3bmVgcOqHmDP9ifsC/1ybk2AeFi7SmSS4 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR1101MB2254.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(39860400002)(136003)(366004)(376002)(396003)(346002)(6916009)(2906002)(71200400001)(316002)(5660300002)(52536014)(66446008)(478600001)(6506007)(53546011)(7696005)(76116006)(33656002)(66946007)(8936002)(86362001)(64756008)(55016002)(9686003)(15650500001)(26005)(66556008)(186003)(8676002)(66476007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: /NjaBIvGmCRvNkzcqjgvJtLmTC004bciZjNYxIEAdDgsZN9YnmumlLRKu9uJyV1HTRcLtCLXdaLxkU8PlMQG1KtiEDdjZuOZuMfUbyRnQngwgv1pBbZ5YbdJvuxRABF0c4Y86Ie84OhQ6elQzhMPV8z0RZ6h3AA8YJ3P3xrc5e9SM6wdBfHI/kzow3jFty3Z6OVOxDoVD0FskRoC5MvJ4zITfiH8nnoS8dy3/6U3rVVyeJbSBOTljxc2eefL9FbsvCn4EtAtQ5MeQvf9ke35uJ54x+iRInTiii+liNHVPKriSiXpwKLfDNPeer+1e4M0lyU3N1hziockHDT7buhMBLV8lNsqdYXauKd8CDm2qECDRjsGbu/vR4N/9TgQPpHpsXjfNLoyUr2BCJELe6398ipnCNdfqCDvScdktSs1Dz7MEeRdCISq7eeKDbtrbMLa2E3Y/9IvajaHGdWv0/PNcq0etNA2DiD7bZf4fuUu7Ajrjv25hqfHJrwDbCOIlFl0 x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 8fea3204-c7d7-42f6-0e5d-08d7f8b0750f X-MS-Exchange-CrossTenant-originalarrivaltime: 15 May 2020 09:15:05.6748 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: twZvFYO1Qltmo6NqUlXgcINNPmZrgqu0WZtZwZS7E9BTGptkxQIQkW7ABPXdm4NjM/y3OoPozv6yxSYvdwoFHQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1101MB2317 X-OriginatorOrg: intel.com 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" Tested-by: Xiao, QimaiX Regards, Xiao Qimai > -----Original Message----- > From: Xiao, QimaiX > 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=3D > n/' 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=3D > y/' 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