From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 2F22769FE for ; Fri, 19 Aug 2016 08:51:11 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP; 18 Aug 2016 23:51:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,544,1464678000"; d="scan'208";a="750819175" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by FMSMGA003.fm.intel.com with ESMTP; 18 Aug 2016 23:51:09 -0700 Message-ID: <57B6ACF4.3050803@intel.com> Date: Fri, 19 Aug 2016 14:53:40 +0800 From: "Liu, Yong" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: "xu,huilong" , dts@dpdk.org References: <1471584328-19701-1-git-send-email-huilongx.xu@intel.com> In-Reply-To: <1471584328-19701-1-git-send-email-huilongx.xu@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dts] [PATCH V2] update coremask test case 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: , X-List-Received-Date: Fri, 19 Aug 2016 06:51:11 -0000 Applied without blacklist suite, for it has been merged before. On 08/19/2016 01:25 PM, xu,huilong wrote: > update list: > 1. update compile switch for update highest log leavel to DEBUG leavel > 2. set log leavel to debug leavel when setup dpdk app > 3. skip core 0 when run all core mask. > > Signed-off-by: xu,huilong > --- > tests/TestSuite_blacklist.py | 4 ++-- > tests/TestSuite_coremask.py | 23 ++++++++++++++++------- > 2 files changed, 18 insertions(+), 9 deletions(-) > > diff --git a/tests/TestSuite_blacklist.py b/tests/TestSuite_blacklist.py > index 06dbf87..784d70d 100644 > --- a/tests/TestSuite_blacklist.py > +++ b/tests/TestSuite_blacklist.py > @@ -50,9 +50,9 @@ class TestBlackList(TestCase): > [arch, machine, self.env, toolchain] = self.target.split('-') > > if self.env == 'bsdapp': > - self.regexp_blacklisted_port = "EAL: PCI device %02x:%s on NUMA socket [-0-9]+[^\n]*\nEAL: probe driver[^\n]*\nEAL: Device is blacklisted, not initializing" > + self.regexp_blacklisted_port = "EAL: PCI device %02x:%s on NUMA socket [-0-9]+[^\n]*\nEAL: Device is blacklisted, not initializing" > else: > - self.regexp_blacklisted_port = "EAL: PCI device %s on NUMA socket [-0-9]+[^\n]*\nEAL: probe driver[^\n]*\nEAL: Device is blacklisted, not initializing" > + self.regexp_blacklisted_port = "EAL: PCI device %s on NUMA socket [-0-9]+[^\n]*\nEAL: Device is blacklisted, not initializing" > self.pmdout = PmdOutput(self.dut) > > def set_up(self): > diff --git a/tests/TestSuite_coremask.py b/tests/TestSuite_coremask.py > index 4f6f4bd..9fd039d 100644 > --- a/tests/TestSuite_coremask.py > +++ b/tests/TestSuite_coremask.py > @@ -17,7 +17,7 @@ from test_case import TestCase > # Test class. > # > > -command_line = """./%s/app/test -c %s -n %d""" > +command_line = """./%s/app/test -c %s -n %d --log-level 8""" > > > class TestCoremask(TestCase): > @@ -39,6 +39,11 @@ class TestCoremask(TestCase): > self.mem_channel = self.dut.get_memory_channels() > > self.all_cores = self.dut.get_core_list("all") > + self.dut.send_expect("sed -i -e 's/CONFIG_RTE_LOG_LEVEL=.*$/" > + + "CONFIG_RTE_LOG_LEVEL=RTE_LOG_DEBUG/' config/common_base", "# ", 30) > + > + self.dut.skip_setup = False > + self.dut.build_install_dpdk(self.target) > > def set_up(self): > """ > @@ -79,11 +84,11 @@ class TestCoremask(TestCase): > > out = self.dut.send_expect(command, "RTE>>", 10) > > - self.verify("EAL: Master lcore 0 is ready" in out, > - "Core 0 not ready") > + self.verify("EAL: Master lcore 1 is ready" in out, > + "Core 1 not ready") > > - self.verify("EAL: Detected lcore 0 as core" in out, > - "Core 0 not detected") > + self.verify("EAL: Detected lcore 1 as core" in out, > + "Core 1 not detected") > > for core in self.all_cores[1:]: > self.verify("EAL: lcore %s is ready" % core in out, > @@ -99,7 +104,7 @@ class TestCoremask(TestCase): > Check coremask parsing for more cores than available. > """ > > - command_line = """./%s/app/test -c %s -n %d|tee out""" > + command_line = """./%s/app/test -c %s -n %d --log-level 8|tee out""" > > # Default big coremask value 128 > big_coremask_size = 128 > @@ -173,4 +178,8 @@ class TestCoremask(TestCase): > """ > Run after each test suite. > """ > - pass > + self.dut.send_expect("sed -i -e 's/CONFIG_RTE_LOG_LEVEL=.*$/" > + + "CONFIG_RTE_LOG_LEVEL=RTE_LOG_INFO/' config/common_base", "# ", 30) > + > + #self.dut.skip_setup = False > + self.dut.build_install_dpdk(self.target)