test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Lin, Xueqin" <xueqin.lin@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Lin, Xueqin" <xueqin.lin@intel.com>
Subject: Re: [dts] [PATCH] tests/unit_tests_lpm: add lpm perf and lpm6 perf	script
Date: Fri, 11 Jan 2019 02:13:26 +0000	[thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0B9FFE69@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1547000731-38026-1-git-send-email-xueqin.lin@intel.com>

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xueqin Lin
> Sent: Wednesday, January 9, 2019 10:26 AM
> To: dts@dpdk.org
> Cc: Lin, Xueqin <xueqin.lin@intel.com>
> Subject: [dts] [PATCH] tests/unit_tests_lpm: add lpm perf and lpm6 perf script
> 
> From: "xueqin.lin" <xueqin.lin@intel.com>
> 
> Signed-off-by: Xueqin Lin <xueqin.lin@intel.com>
> 
> ---
>  tests/TestSuite_unit_tests_lpm.py | 32 +++++++++++++++++++++++++++++---
>  1 file changed, 29 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/TestSuite_unit_tests_lpm.py
> b/tests/TestSuite_unit_tests_lpm.py
> index 8a09ff2..6e73148 100644
> --- a/tests/TestSuite_unit_tests_lpm.py
> +++ b/tests/TestSuite_unit_tests_lpm.py
> @@ -71,9 +71,11 @@ class TestUnitTestsLpmIpv6(TestCase):
> 
>      def test_lpm(self):
>          """
> -        Run lpm for IPv6 autotest.
> +        Run lpm for IPv4 autotest.
>          """
> -        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target,
> self.coremask), "R.*T.*E.*>.*>", 60)
> +        self.dut.send_expect(
> +            "./%s/app/test -n 1 -c %s"
> +            % (self.target, self.coremask), "R.*T.*E.*>.*>", 60)
>          out = self.dut.send_expect("lpm_autotest", "RTE>>", 120)
>          self.dut.send_expect("quit", "# ")
>          self.verify("Test OK" in out, "Test failed") @@ -82,11 +84,35 @@ class
> TestUnitTestsLpmIpv6(TestCase):
>          """
>          Run lpm for IPv6 autotest.
>          """
> -        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target,
> self.coremask), "R.*T.*E.*>.*>", 60)
> +        self.dut.send_expect(
> +            "./%s/app/test -n 1 -c %s"
> +            % (self.target, self.coremask), "R.*T.*E.*>.*>", 60)
>          out = self.dut.send_expect("lpm6_autotest", "RTE>>", 120)
>          self.dut.send_expect("quit", "# ")
>          self.verify("Test OK" in out, "Test failed")
> 
> +    def test_lpm_perf(self):
> +        """
> +        Run lpm for IPv4 performance autotest.
> +        """
> +        self.dut.send_expect(
> +            "./%s/app/test -n 1 -c %s"
> +            % (self.target, self.coremask), "R.*T.*E.*>.*>", 60)
> +        out = self.dut.send_expect("lpm_perf_autotest", "RTE>>", 600)
> +        self.dut.send_expect("quit", "# ")
> +        self.verify("Test OK" in out, "Test failed")
> +
> +    def test_lpm_ipv6_perf(self):
> +        """
> +        Run lpm for IPv6 performance autotest.
> +        """
> +        self.dut.send_expect(
> +            "./%s/app/test -n 1 -c %s"
> +            % (self.target, self.coremask), "R.*T.*E.*>.*>", 60)
> +        out = self.dut.send_expect("lpm6_perf_autotest", "RTE>>", 120)
> +        self.dut.send_expect("quit", "# ")
> +        self.verify("Test OK" in out, "Test failed")
> +
>      def tear_down(self):
>          """
>          Run after each test case.
> --
> 2.7.5

      reply	other threads:[~2019-01-11  2:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-09  2:25 Xueqin Lin
2019-01-11  2:13 ` Tu, Lijuan [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=8CE3E05A3F976642AAB0F4675D0AD20E0B9FFE69@SHSMSX101.ccr.corp.intel.com \
    --to=lijuan.tu@intel.com \
    --cc=dts@dpdk.org \
    --cc=xueqin.lin@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).