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 7F119A0487 for ; Wed, 3 Jul 2019 11:03:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4CC511B9C9; Wed, 3 Jul 2019 11:03:38 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id AD2BAF04 for ; Wed, 3 Jul 2019 11:03:36 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jul 2019 02:03:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,446,1557212400"; d="scan'208";a="247551696" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga001.jf.intel.com with ESMTP; 03 Jul 2019 02:03:35 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 3 Jul 2019 02:03:35 -0700 Received: from shsmsx106.ccr.corp.intel.com ([169.254.10.240]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.22]) with mapi id 14.03.0439.000; Wed, 3 Jul 2019 17:03:33 +0800 From: "Yao, BingX Y" 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: AQHVMXsZlI8gK+7WikOuvzHLKM9sQKa4mU/A Date: Wed, 3 Jul 2019 09:03:33 +0000 Message-ID: <95BCD24840F32441BEA74E0F8A31839E058F3CBF@SHSMSX106.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: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="iso-2022-jp" 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" Tested-by=1B$B!'=1B(BYao, BingX Y -----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 modify coremask to 5,6 rather than 9,10 to run on env with only 8 lcores. Signed-off-by: xiao,qimai --- tests/TestSuite_multiprocess.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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) self.dut.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") self.session_secondary.send_expect("./examples/multi_process/simpl= e_mp/%s/simple_mp -n 1 -c %s --proc-type=3Dsecondary" % (self.target, corem= ask), "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) self.session_secondary.send_expect("./examples/multi_process/simpl= e_mp/%s/simple_mp -n 1 -c %s --proc-type=3Dprimary " % (self.target, corema= sk), "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") self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple= _mp -n 1 -c %s --proc-type=3Dsecondary" % (self.target, coremask), "Finishe= d Process Init", 100) self.session_secondary.send_expect("send hello_secondary", ">") out =3D self.dut.get_session_output() @@ -129,7 +129,7 @@ class Te= stMultiprocess(TestCase): coremask =3D utils.create_mask(cores) self.session_secondary.send_expect("./examples/multi_process/simpl= e_mp/%s/simple_mp -n 1 -c %s --proc-type=3Dprimary" % (self.target, coremas= k), "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") self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple= _mp -n 1 -c %s --proc-type=3Dsecondary" % (self.target, coremask), "Finishe= d Process 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), "Fin= ished Process Init", 100) self.verify("EAL: Auto-detected process type: PRIMARY" in out, "Th= e 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_proce= ss/simple_mp/%s/simple_mp -n 1 -c %s --proc-type=3Dauto" % (self.target, co= remask), "Finished Process Init", 100) self.verify("EAL: Auto-detected process type: SECONDARY" in out, "The type of process (SECONDARY) was not detected prop= erly") @@ -171,7 +171,7 @@ class TestMultiprocess(TestCase): out =3D self.session_secondary.send_expect("./examples/multi_proce= ss/simple_mp/%s/simple_mp -n 1 -c %s --proc-type=3Dauto" % (self.target, co= remask), "Finished Process Init", 100) self.verify("EAL: Auto-detected process type: PRIMARY" in out, "Th= e 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), "Fini= shed Process 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", ">",100= ) @@ -190,7 +190,7 @@ class TestMultiprocess(TestCase): cores =3D self.dut.get_core_list('1S/2C/1T') coremask =3D utils.create_mask(cores) self.session_secondary.send_expect("./examples/multi_process/simpl= e_mp/%s/simple_mp -n 1 -c %s -m 64" % (self.target, coremask), "Finished Pr= ocess 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