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 CEB552E8A for ; Tue, 26 May 2015 12:05:57 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 26 May 2015 03:05:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,497,1427785200"; d="scan'208";a="735310318" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga002.jf.intel.com with ESMTP; 26 May 2015 03:05:56 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t4QA5rrU007791; Tue, 26 May 2015 18:05:53 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t4QA5piR020607; Tue, 26 May 2015 18:05:53 +0800 Received: (from jingguox@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t4QA5psu020603; Tue, 26 May 2015 18:05:51 +0800 From: Jingguo Fu To: dts@dpdk.org Date: Tue, 26 May 2015 18:05:46 +0800 Message-Id: <1432634747-20565-2-git-send-email-jingguox.fu@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1432634747-20565-1-git-send-email-jingguox.fu@intel.com> References: <1432634747-20565-1-git-send-email-jingguox.fu@intel.com> Cc: Jingguo Fu Subject: [dts] [DTS][PATCH 2/3] jumbo frame: fix sutie for framework update 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: Tue, 26 May 2015 10:05:58 -0000 Signed-off-by: Jingguo Fu --- tests/TestSuite_jumboframes.py | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/tests/TestSuite_jumboframes.py b/tests/TestSuite_jumboframes.py index 83b3427..3add9ea 100644 --- a/tests/TestSuite_jumboframes.py +++ b/tests/TestSuite_jumboframes.py @@ -96,11 +96,9 @@ class TestJumboframes(TestCase): if received: self.verify(p0tx_pkts == p1rx_pkts and p0tx_bytes == pktsize and p1rx_bytes == pktsize, "packet pass assert error") - else: self.verify(p0tx_pkts == p1rx_pkts and (p1rx_err == 1 or p1rx_pkts == 0), "packet drop assert error") - return out # @@ -112,13 +110,12 @@ class TestJumboframes(TestCase): """ Prerequisite steps for each test suit. """ - self.dut_ports = self.dut.get_ports() self.verify(len(self.dut_ports) >= 2, "Insufficient ports") self.rx_port = self.dut_ports[0] self.tx_port = self.dut_ports[1] - cores = self.dut.get_core_list('1S/2C/2T') + cores = self.dut.get_core_list("1S/2C/1T") self.coremask = dts.create_mask(cores) self.port_mask = dts.create_mask([self.rx_port, self.tx_port]) @@ -139,10 +136,7 @@ class TestJumboframes(TestCase): This case aims to test transmitting normal size packet without jumbo frame on testpmd app. """ - - self.dut.kill_all() - - self.pmdout.start_testpmd("all", "--max-pkt-len=%d" % (ETHER_STANDARD_MTU)) + self.pmdout.start_testpmd("Default", "--max-pkt-len=%d" % (ETHER_STANDARD_MTU)) self.dut.send_expect("start", "testpmd> ") self.jumboframes_send_packet(ETHER_STANDARD_MTU - 1) @@ -156,10 +150,7 @@ class TestJumboframes(TestCase): This case aims to test transmitting jumbo frame packet on testpmd without jumbo frame support. """ - - self.dut.kill_all() - - self.pmdout.start_testpmd("all", "--max-pkt-len=%d" % (ETHER_STANDARD_MTU)) + self.pmdout.start_testpmd("Default", "--max-pkt-len=%d" % (ETHER_STANDARD_MTU)) self.dut.send_expect("start", "testpmd> ") self.jumboframes_send_packet(ETHER_STANDARD_MTU + 1, False) @@ -172,10 +163,7 @@ class TestJumboframes(TestCase): When jumbo frame supported, this case is to verify that the normal size packet forwrding should be support correct. """ - - self.dut.kill_all() - - self.pmdout.start_testpmd("all", "--max-pkt-len=%s" % (ETHER_JUMBO_FRAME_MTU)) + self.pmdout.start_testpmd("Default", "--max-pkt-len=%s" % (ETHER_JUMBO_FRAME_MTU)) self.dut.send_expect("start", "testpmd> ") self.jumboframes_send_packet(1517) @@ -189,10 +177,7 @@ class TestJumboframes(TestCase): When jumbo frame supported, this case is to verify that jumbo frame packet can be forwarded correct. """ - - self.dut.kill_all() - - self.pmdout.start_testpmd("all", "--max-pkt-len=%s" % (ETHER_JUMBO_FRAME_MTU)) + self.pmdout.start_testpmd("Default", "--max-pkt-len=%s" % (ETHER_JUMBO_FRAME_MTU)) self.dut.send_expect("start", "testpmd> ") self.jumboframes_send_packet(ETHER_STANDARD_MTU + 1) @@ -207,10 +192,7 @@ class TestJumboframes(TestCase): When the jubmo frame MTU set as 9000, this case is to verify that the packet which the length bigger than MTU can not be forwarded. """ - - self.dut.kill_all() - - self.pmdout.start_testpmd("1S/2C/1T", "--max-pkt-len=%s" % (ETHER_JUMBO_FRAME_MTU)) + self.pmdout.start_testpmd("Default", "--max-pkt-len=%s" % (ETHER_JUMBO_FRAME_MTU)) self.dut.send_expect("start", "testpmd> ") self.jumboframes_send_packet(ETHER_JUMBO_FRAME_MTU + 1, False) -- 2.1.0