From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 324E8A0583; Fri, 20 Mar 2020 09:06:16 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 29CEE1C025; Fri, 20 Mar 2020 09:06:16 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id AD7DE2BF2 for ; Fri, 20 Mar 2020 09:06:13 +0100 (CET) IronPort-SDR: RwWk8c+Kp+U67Sc7pWHkTLIRk/Br55vlakfiyzW+6uHf8paqfLQwNiIc6OBms26KRZpb87xj4/ ctqb/4MGZNkg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2020 01:06:12 -0700 IronPort-SDR: JmzmTLSGVh8sX9m0HtsDfhFNcwnPJ9rjcdjaUXmUlVttO0v5eYjNupgDTUK+1JlnA68J2mrKk1 xjuqFJhw+0Kw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,283,1580803200"; d="scan'208";a="245420533" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga003.jf.intel.com with ESMTP; 20 Mar 2020 01:06:12 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 20 Mar 2020 01:06:12 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 20 Mar 2020 01:06:11 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Fri, 20 Mar 2020 01:06:11 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.137]) with mapi id 14.03.0439.000; Fri, 20 Mar 2020 16:06:10 +0800 From: "Tu, Lijuan" To: "nareddy@marvell.com" , "dts@dpdk.org" CC: "pvukkisala@marvell.com" Thread-Topic: [dts] [PATCH] TestSuite_shutdown_api.py: added new test case test_check_rxtx_desc_status Thread-Index: AQHV+0p5WVZkaY/2bEWuyuMNpIx2l6hRJjSw Date: Fri, 20 Mar 2020 08:06:09 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBEFA7F@SHSMSX101.ccr.corp.intel.com> References: <1584332512-26301-1-git-send-email-nareddy@marvell.com> In-Reply-To: <1584332512-26301-1-git-send-email-nareddy@marvell.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH] TestSuite_shutdown_api.py: added new test case test_check_rxtx_desc_status 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of > nareddy@marvell.com > Sent: Monday, March 16, 2020 12:22 PM > To: dts@dpdk.org > Cc: pvukkisala@marvell.com; Praneeth Reddy > Subject: [dts] [PATCH] TestSuite_shutdown_api.py: added new test case > test_check_rxtx_desc_status >=20 > From: Praneeth Reddy >=20 > Added new test case to verify descriptor status for cavium_a063 and > cavium_a064 >=20 > Signed-off-by: Praneeth Reddy > --- > conf/test_case_supportlist.json | 16 ++++++++++++++++ > tests/TestSuite_shutdown_api.py | 22 ++++++++++++++++++++++ > 2 files changed, 38 insertions(+) >=20 > diff --git a/conf/test_case_supportlist.json b/conf/test_case_supportlist= .json > index 8d30513..eba0840 100644 > --- a/conf/test_case_supportlist.json > +++ b/conf/test_case_supportlist.json > @@ -1766,5 +1766,21 @@ > "Bug ID": "", > "Comments": "this case only support on fortville" > } > + ], > + "check_rxtx_desc_status": [ > + { > + "OS": [ > + "ALL" > + ], > + "NIC": [ > + "cavium_a064", > + "cavium_a063" > + ], > + "Target": [ > + "ALL" > + ], > + "Bug ID": "", > + "Comments": "This case currently support for cavium_a063 and > cavium_a064 " > + } > ] > } > diff --git a/tests/TestSuite_shutdown_api.py > b/tests/TestSuite_shutdown_api.py index 11d451b..6393b1d 100644 > --- a/tests/TestSuite_shutdown_api.py > +++ b/tests/TestSuite_shutdown_api.py > @@ -40,12 +40,14 @@ import utils > import time > import re > import os > +import random > from test_case import TestCase > from pmd_output import PmdOutput > from settings import HEADER_SIZE, PROTOCOL_PACKET_SIZE from > exception import VerifyFailure from qemu_kvm import QEMUKvm from > settings import get_nic_name > +from random import randint >=20 > # > # > @@ -744,6 +746,26 @@ class TestShutdownApi(TestCase): > self.check_ports(status=3DTrue) > self.check_forwarding() >=20 > + def test_check_rxtx_desc_status(self): > + """ > + Check tx and rx descriptors status. > + """ > + self.pmdout.start_testpmd("Default", "--portmask=3D%s > + --port-topology=3Dloop" % utils.create_mask(self.ports), > + socket=3Dself.ports_socket) > + > + for i in range(3): > + self.desc =3D randint(0, 4095) > + out =3D self.dut.send_expect("show port %s rxq 0 desc %s sta= tus" % > (self.ports[0], self.desc), "testpmd> ") > + self.verify( > + "Desc status =3D AVAILABLE" in out, "RX descriptor status= is improper") > + self.verify( > + "Bad arguments" not in out, "RX descriptor status is not = supported") > + self.desc =3D randint(0, 511) > + out =3D self.dut.send_expect("show port %s txq 0 desc %s sta= tus" % > (self.ports[0], self.desc), "testpmd> ") > + self.verify( > + "Desc status =3D FULL" in out, "TX descriptor status is i= mproper") > + self.verify( > + "Bad arguments" not in out, "TX descriptor status is not > + supported") > + > def tear_down(self): > """ > Run after each test case. > -- > 1.8.3.1