From: Jingguo Fu <jingguox.fu@intel.com>
To: dts@dpdk.org
Cc: Jingguo Fu <jingguox.fu@intel.com>
Subject: [dts] [DTS][PATCH 2/3] jumbo frame: fix sutie for framework update
Date: Tue, 26 May 2015 18:05:46 +0800 [thread overview]
Message-ID: <1432634747-20565-2-git-send-email-jingguox.fu@intel.com> (raw)
In-Reply-To: <1432634747-20565-1-git-send-email-jingguox.fu@intel.com>
Signed-off-by: Jingguo Fu <jingguox.fu@intel.com>
---
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
next prev parent reply other threads:[~2015-05-26 10:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-26 10:05 [dts] [DTS][PATCH 1/3] ieee1588: " Jingguo Fu
2015-05-26 10:05 ` Jingguo Fu [this message]
2015-05-26 10:05 ` [dts] [DTS][PATCH 3/3] whitelist: " Jingguo Fu
2015-06-01 8:59 ` [dts] [DTS][PATCH 1/3] ieee1588: " Liu, Yong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1432634747-20565-2-git-send-email-jingguox.fu@intel.com \
--to=jingguox.fu@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).