test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Liu, Yong" <yong.liu@intel.com>
To: "xu,gang" <gangx.xu@intel.com>, dts@dpdk.org
Subject: Re: [dts] [PATCH V1] add test suite vhost_pmd_xstats
Date: Mon, 20 Feb 2017 17:26:11 +0800	[thread overview]
Message-ID: <58AAB633.6090300@intel.com> (raw)
In-Reply-To: <1487580313-30007-1-git-send-email-gangx.xu@intel.com>

Gang, stability test will cause too much time for running. You can limit 
the duration to few minutes and let's merge this suite first.
Then we need one solution for distribute different kinds of cases. It'll 
be next step.

Thanks,
Marvin

On 02/20/2017 04:45 PM, xu,gang wrote:
> +
> +    def test_stability(self):
> +        """
> +        Verify stability case with multiple queues for Vhsot PMD xstats
> +        Send packets for 30 minutes, check the Xstatsa still can work correctly
> +        """
> +        self.scapy_num = 0
> +        self.prepare_start()
> +        date_old = datetime.datetime.now()
> +        date_new = date_old + datetime.timedelta(minutes=30)
> +        while(1):
> +            date_now = datetime.datetime.now()
> +            self.scapy_send_packet(64, self.dmac, 1)
> +            if date_now >= date_new:
> +                break
> +        out_0 = self.dut.send_expect(
> +            "show port xstats %s" % self.dut_ports[0], "testpmd>", 60)
> +        rx_packet = re.search("rx_size_64_packets:\s*(\d*)", out_0)
> +        rx_packets = rx_packet.group(1)
> +        self.verify(self.scapy_num == int(rx_packets), "Error for rx_package:%s != tx_package :%s" % (
> +            self.scapy_num, int(rx_packets)))

  reply	other threads:[~2017-02-20  9:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-20  8:45 xu,gang
2017-02-20  9:26 ` Liu, Yong [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-01-06  6:14 [dts] [patch " xu,gang
2016-12-29  6:05 [dts] [PATCH " xu,gang
2017-01-04  3:23 ` Liu, Yong
2016-12-27  3:13 xu,gang
2016-12-27  7:59 ` Liu, Yong

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=58AAB633.6090300@intel.com \
    --to=yong.liu@intel.com \
    --cc=dts@dpdk.org \
    --cc=gangx.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).