From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id F18B1374E for ; Mon, 20 Feb 2017 10:33:11 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Feb 2017 01:33:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,185,1484035200"; d="scan'208";a="1113088173" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by fmsmga001.fm.intel.com with ESMTP; 20 Feb 2017 01:33:09 -0800 Message-ID: <58AAB633.6090300@intel.com> Date: Mon, 20 Feb 2017 17:26:11 +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,gang" , dts@dpdk.org References: <1487580313-30007-1-git-send-email-gangx.xu@intel.com> In-Reply-To: <1487580313-30007-1-git-send-email-gangx.xu@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dts] [PATCH V1] add test suite vhost_pmd_xstats 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: Mon, 20 Feb 2017 09:33:12 -0000 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)))