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 141E2A00E6 for ; Wed, 10 Jul 2019 07:32:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D4FD21B96E; Wed, 10 Jul 2019 07:32:29 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 601F91B95A for ; Wed, 10 Jul 2019 07:32:27 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jul 2019 22:32:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,473,1557212400"; d="scan'208";a="176727828" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga002.jf.intel.com with ESMTP; 09 Jul 2019 22:32:26 -0700 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 9 Jul 2019 22:32:25 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 9 Jul 2019 22:32:25 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.134]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.22]) with mapi id 14.03.0439.000; Wed, 10 Jul 2019 13:32:23 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1] update case for env with lcores less than 10 Thread-Index: AQHVMXsZmc5+Sdyph0mOWlz5FcSCa6bDXrTA Date: Wed, 10 Jul 2019 05:32:23 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BADE93D@SHSMSX101.ccr.corp.intel.com> References: <1562143534-137282-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1562143534-137282-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.0.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNjRjYmQ4ZDgtMTIzNC00NzA3LWE0YWUtODRlZjQ3MGU1NDFjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiV2FjMFJmRUhUQzlpaGg1UGlkaURzNU9UYzNGa2xLVUpcL1Fvc0tXZ0x2VEYyQ2NpN0pPa3dHYmp0aXJCYVI3TEgifQ== 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 V1] update case for env with lcores less than 10 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: Wednesday, July 3, 2019 4:46 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1] update case for env with lcores less than 10 >=20 > modify coremask to 5,6 rather than 9,10 to run on env with only 8 lcores. >=20 > Signed-off-by: xiao,qimai > --- > tests/TestSuite_multiprocess.py | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) >=20 > diff --git a/tests/TestSuite_multiprocess.py > b/tests/TestSuite_multiprocess.py index a22266a..b690d81 100644 > --- a/tests/TestSuite_multiprocess.py > +++ b/tests/TestSuite_multiprocess.py > @@ -97,7 +97,7 @@ class TestMultiprocess(TestCase): > coremask =3D utils.create_mask(cores) >=20 > self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp - > n 1 -c %s --proc-type=3Dprimary" % (self.target, coremask), "Finished Pro= cess > Init", 100) > time.sleep(20) > - coremask =3D hex(int(coremask, 16) * 0x100).rstrip("L") > + coremask =3D hex(int(coremask, 16) * 0x10).rstrip("L") >=20 > self.session_secondary.send_expect("./examples/multi_process/simple_mp/ > %s/simple_mp -n 1 -c %s --proc-type=3Dsecondary" % (self.target, coremask= ), > "Finished Process Init", 100) >=20 > self.session_secondary.send_expect("send hello_primary", ">") @@= - > 110,7 +110,7 @@ class TestMultiprocess(TestCase): > coremask =3D utils.create_mask(cores) >=20 > self.session_secondary.send_expect("./examples/multi_process/simple_mp/ > %s/simple_mp -n 1 -c %s --proc-type=3Dprimary " % (self.target, coremask)= , > "Finished Process Init", 100) > time.sleep(20) > - coremask =3D hex(int(coremask, 16) * 0x100).rstrip("L") > + coremask =3D hex(int(coremask, 16) * 0x10).rstrip("L") >=20 > self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp - > n 1 -c %s --proc-type=3Dsecondary" % (self.target, coremask), "Finished P= rocess > Init", 100) > self.session_secondary.send_expect("send hello_secondary", ">") > out =3D self.dut.get_session_output() @@ -129,7 +129,7 @@ class > TestMultiprocess(TestCase): > coremask =3D utils.create_mask(cores) >=20 > self.session_secondary.send_expect("./examples/multi_process/simple_mp/ > %s/simple_mp -n 1 -c %s --proc-type=3Dprimary" % (self.target, coremask), > "Finished Process Init", 100) > time.sleep(20) > - coremask =3D hex(int(coremask, 16) * 0x100).rstrip("L") > + coremask =3D hex(int(coremask, 16) * 0x10).rstrip("L") >=20 > self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp - > n 1 -c %s --proc-type=3Dsecondary" % (self.target, coremask), "Finished P= rocess > Init", 100) > stringsSent =3D 0 > for line in open('/usr/share/dict/words', 'r').readlines(): > @@ -154,7 +154,7 @@ class TestMultiprocess(TestCase): > out =3D > self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp - > n 1 -c %s --proc-type=3Dauto " % (self.target, coremask), "Finished Proce= ss Init", > 100) > self.verify("EAL: Auto-detected process type: PRIMARY" in out, "= The > type of process (PRIMARY) was not detected properly") > time.sleep(20) > - coremask =3D hex(int(coremask, 16) * 0x100).rstrip("L") > + coremask =3D hex(int(coremask, 16) * 0x10).rstrip("L") > out =3D > self.session_secondary.send_expect("./examples/multi_process/simple_mp/ > %s/simple_mp -n 1 -c %s --proc-type=3Dauto" % (self.target, coremask), > "Finished Process Init", 100) > self.verify("EAL: Auto-detected process type: SECONDARY" in out, > "The type of process (SECONDARY) was not detected pr= operly") > @@ -171,7 +171,7 @@ class TestMultiprocess(TestCase): > out =3D > self.session_secondary.send_expect("./examples/multi_process/simple_mp/ > %s/simple_mp -n 1 -c %s --proc-type=3Dauto" % (self.target, coremask), > "Finished Process Init", 100) > self.verify("EAL: Auto-detected process type: PRIMARY" in out, "= The > type of process (PRIMARY) was not detected properly") > time.sleep(20) > - coremask =3D hex(int(coremask, 16) * 0x100).rstrip("L") > + coremask =3D hex(int(coremask, 16) * 0x10).rstrip("L") > out =3D > self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp - > n 1 -c %s --proc-type=3Dauto" % (self.target, coremask), "Finished Proces= s Init", > 100) > self.verify("EAL: Auto-detected process type: SECONDARY" in out,= "The > type of process (SECONDARY) was not detected properly") > self.session_secondary.send_expect("send hello_secondary", ">",1= 00) > @@ -190,7 +190,7 @@ class TestMultiprocess(TestCase): > cores =3D self.dut.get_core_list('1S/2C/1T') > coremask =3D utils.create_mask(cores) >=20 > self.session_secondary.send_expect("./examples/multi_process/simple_mp/ > %s/simple_mp -n 1 -c %s -m 64" % (self.target, coremask), "Finished Proce= ss > Init", 100) > - coremask =3D hex(int(coremask, 16) * 0x100).rstrip("L") > + coremask =3D hex(int(coremask, 16) * 0x10).rstrip("L") > out =3D > self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp - > n 1 -c %s" % (self.target, coremask), "# ", 100) >=20 > self.verify("Is another primary process running" in out, > -- > 2.17.1