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 477B0A0559; Mon, 16 Mar 2020 05:22:01 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 078391BE51; Mon, 16 Mar 2020 05:22:01 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 8786A1AFF for ; Mon, 16 Mar 2020 05:21:59 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 02G4LLog010037 for ; Sun, 15 Mar 2020 21:21:58 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0818; bh=rQVHp6Z035xtX7phPxlpp2eoGuKvBztvlegkU1mAmH4=; b=b2VHskEGWtUs0AHEwfqkVOyRhwioGRt9mJdyUr4axKXavL0BUfPI5OPMVVIO7CpIsUv3 +WjIV/DrjkwN2QLhr4HKmWEzPjpl0gqpq2ASKosD7U22fVLZeGz8tKz7Ygmhbs1MohuB UiYOmZzE5rvPMrhQMI4nqRVFIyUdVByrKAfgjeHrsyrU3W4piLTHut79PgNP4L34fasK 6YInyDHwEoXZfkbB4JDCm/EgmGexAsmifNS9H+qmRYkqbDZ4MGIQfLa9ciuYwiNuLSRC MZ8UlS20LhqJElTR55XQR9ONzEBzpPR7k1qwaGleEuYkLXFObhVkCFNLzpuI6Y2YffZR 8w== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0a-0016f401.pphosted.com with ESMTP id 2yrvmqnt9p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Sun, 15 Mar 2020 21:21:58 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 15 Mar 2020 21:21:57 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 15 Mar 2020 21:21:56 -0700 Received: from localhost.marvell.com (unknown [10.28.8.16]) by maili.marvell.com (Postfix) with ESMTP id EC5823F703F; Sun, 15 Mar 2020 21:21:55 -0700 (PDT) From: To: CC: , Praneeth Reddy Date: Mon, 16 Mar 2020 09:51:52 +0530 Message-ID: <1584332512-26301-1-git-send-email-nareddy@marvell.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-03-15_05:2020-03-12, 2020-03-15 signatures=0 Subject: [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" From: Praneeth Reddy Added new test case to verify descriptor status for cavium_a063 and cavium_a064 Signed-off-by: Praneeth Reddy --- conf/test_case_supportlist.json | 16 ++++++++++++++++ tests/TestSuite_shutdown_api.py | 22 ++++++++++++++++++++++ 2 files changed, 38 insertions(+) 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 # # @@ -744,6 +746,26 @@ class TestShutdownApi(TestCase): self.check_ports(status=True) self.check_forwarding() + def test_check_rxtx_desc_status(self): + """ + Check tx and rx descriptors status. + """ + self.pmdout.start_testpmd("Default", "--portmask=%s --port-topology=loop" % utils.create_mask(self.ports), socket=self.ports_socket) + + for i in range(3): + self.desc = randint(0, 4095) + out = self.dut.send_expect("show port %s rxq 0 desc %s status" % (self.ports[0], self.desc), "testpmd> ") + self.verify( + "Desc status = AVAILABLE" in out, "RX descriptor status is improper") + self.verify( + "Bad arguments" not in out, "RX descriptor status is not supported") + self.desc = randint(0, 511) + out = self.dut.send_expect("show port %s txq 0 desc %s status" % (self.ports[0], self.desc), "testpmd> ") + self.verify( + "Desc status = FULL" in out, "TX descriptor status is improper") + 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