From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 48C0AA0093; Fri, 24 Jun 2022 09:52:55 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 437124280C; Fri, 24 Jun 2022 09:52:55 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 5F4F240A87 for ; Fri, 24 Jun 2022 09:52:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656057173; x=1687593173; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=l03vtg4CqX7eHEHovMu6y16UaPgksJvxalrehDgqbLA=; b=cDOMtEqoezDyD0MY/KzAbnnl+KaQnBtLn8za8LOTkL5PcdwhE67I56TT k+bdbLAx/rhs8I98pVCZCTKGCXZZQm0LEQ/DGlb3PT94Qd8/pOhDr9FJv Opk6nvSIwiU3N/4T5mFkB16KlIlNyArCkaHC3acPTn+VQuxPwNiw8SqNp q6cNAERVOQ5aP3qNOnA3okh6+r8nLmOqStd/D7znuE2g7YUku1K2Ic3/a wg2b9z1ZO3gJyFW9sDICFALE+2PWoEYhEddH2Hp3J60NaaoL8ybcL9C4e 8my1kHfcB62S4MLuUyObnej985d6KVK35RJqPlVbSqAr+yB51Cfy/+JiU g==; X-IronPort-AV: E=McAfee;i="6400,9594,10387"; a="269677692" X-IronPort-AV: E=Sophos;i="5.92,218,1650956400"; d="scan'208";a="269677692" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2022 00:52:53 -0700 X-IronPort-AV: E=Sophos;i="5.92,218,1650956400"; d="scan'208";a="621640115" Received: from unknown (HELO localhost.localdomain) ([10.239.252.99]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2022 00:52:51 -0700 From: Lingli Chen To: dts@dpdk.org Cc: zhiminx.huang@intel.com, Lingli Chen Subject: [dts][PATCH V1 2/2] tests/*: modify script according to dpdk code change Date: Fri, 24 Jun 2022 03:17:04 -0400 Message-Id: <20220624071704.6651-2-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220624071704.6651-1-linglix.chen@intel.com> References: <20220624071704.6651-1-linglix.chen@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=y Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 According to dpdk commit 3c4426db54fc(app/testpmd: do not poll stopped queues) dynamic_queue: Tx stopped queue not display queue_start_stop: after set “port 0 txq 0 stop”, no print in testpmd Signed-off-by: Lingli Chen --- tests/TestSuite_dynamic_queue.py | 15 ++++++++------- tests/TestSuite_queue_start_stop.py | 12 ------------ 2 files changed, 8 insertions(+), 19 deletions(-) diff --git a/tests/TestSuite_dynamic_queue.py b/tests/TestSuite_dynamic_queue.py index ebbe869c..5a826bd1 100644 --- a/tests/TestSuite_dynamic_queue.py +++ b/tests/TestSuite_dynamic_queue.py @@ -163,13 +163,14 @@ class TestDynamicQueue(TestCase): out = self.dut_testpmd.execute_cmd("stop") tx_num = qringsize - 1 - if self.nic in ["cavium_a063", "cavium_a064"]: - self.verify("TX-packets: 0" in out, "Fail to stop txq at runtime") - else: - # Check Tx stopped queue only transmits qringsize-1 packets - self.verify( - "TX-packets: %d" % tx_num in out, "Fail to stop txq at runtime" - ) + # check rxq start successful + self.verify("TX-packets:" in out, "txq start failed") + # check Tx stopped queue not display + self.verify( + "TX Port= 0/Queue={:>2}".format(queue) not in out, + "Fail to stop txq at runtime", + ) + if chgflag == 1: chg_qringsize = qringsize % 1024 + 256 if qringsize == 512: diff --git a/tests/TestSuite_queue_start_stop.py b/tests/TestSuite_queue_start_stop.py index 1df59a1b..f5028e8b 100644 --- a/tests/TestSuite_queue_start_stop.py +++ b/tests/TestSuite_queue_start_stop.py @@ -134,21 +134,9 @@ class TestQueueStartStop(TestCase): self.dut.send_expect("port 0 txq 0 stop", "testpmd>") self.dut.send_expect("start", "testpmd>") self.check_forwarding([0, 0], self.nic, received=False) - out = self.dut.get_session_output() except Exception as e: raise IOError("queue start/stop forward failure: %s" % e) - if self.nic == "cavium_a063": - self.verify( - "ports 0 queue 0 receive 4 packages" in out, - "start queue revice package failed, out = %s" % out, - ) - else: - self.verify( - "ports 0 queue 0 receive 1 packages\r\n" * 4 in out, - "start queue revice package failed, out = %s" % out, - ) - try: # start tx queue test print("test start rx and tx queue") -- 2.17.1