From: "Liu, Yong" <yong.liu@intel.com>
To: "xu,huilong" <huilongx.xu@intel.com>, dts@dpdk.org
Subject: Re: [dts] [PATCH V2] update coremask test case
Date: Fri, 19 Aug 2016 14:53:40 +0800 [thread overview]
Message-ID: <57B6ACF4.3050803@intel.com> (raw)
In-Reply-To: <1471584328-19701-1-git-send-email-huilongx.xu@intel.com>
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 <huilongx.xu@intel.com>
> ---
> 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)
prev parent reply other threads:[~2016-08-19 6:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-19 5:25 xu,huilong
2016-08-19 6:53 ` Liu, Yong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=57B6ACF4.3050803@intel.com \
--to=yong.liu@intel.com \
--cc=dts@dpdk.org \
--cc=huilongx.xu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).