From: xizhan4x <xix.zhang@intel.com>
To: dts@dpdk.org
Cc: xizhan4x <xix.zhang@intel.com>
Subject: [dts] [dts 05/38] tests-TestSuite_fdir.py:support meson build
Date: Fri, 4 Sep 2020 16:18:12 +0800 [thread overview]
Message-ID: <1599207525-22123-5-git-send-email-xix.zhang@intel.com> (raw)
In-Reply-To: <1599207525-22123-1-git-send-email-xix.zhang@intel.com>
Signed-off-by: xizhan4x <xix.zhang@intel.com>
---
tests/TestSuite_fdir.py | 39 ++++++++++++++++++++-------------------
1 file changed, 20 insertions(+), 19 deletions(-)
diff --git a/tests/TestSuite_fdir.py b/tests/TestSuite_fdir.py
index 2b34776..1b7ad0a 100644
--- a/tests/TestSuite_fdir.py
+++ b/tests/TestSuite_fdir.py
@@ -141,7 +141,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
PMD prerequisites.
"""
self.tester.extend_external_packet_generator(TestFdir, self)
- #self.verify('bsdapp' not in self.target, "FDIR not support freebsd")
+ #self.verify('bsdapp' not in self.path, "FDIR not support freebsd")
# this feature support Fortville, Niantic
#self.verify(self.nic in ["kawela_2", "niantic", "bartonhills", "82545EM",
# "82540EM", "springfountain", "fortville_eagle",
@@ -164,6 +164,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
self.dut_rx_interface = self.tester.get_interface(self.dut_rx_port)
self.dut_tx_port = self.tester.get_local_port(self.dut_ports[1])
self.dut_tx_interface = self.tester.get_interface(self.dut_rx_port)
+ self.path=self.dut.apps_name['test-pmd']
self.blacklist = ""
@@ -255,7 +256,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
"""
self.dut.kill_all()
- self.dut.send_expect("./%s/app/testpmd -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=perfect" % (self.target, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
+ self.dut.send_expect("%s -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=perfect" % (self.path, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
self.dut.send_expect("set verbose 1", "testpmd>")
self.dut.send_expect("set fwd rxonly", "testpmd>")
@@ -331,10 +332,10 @@ class TestFdir(TestCase, IxiaPacketGenerator):
self.dut.kill_all()
if self.nic in ["niantic", "sagepond", "sageville"]:
# Niantic ipv6 only support signature mode
- self.dut.send_expect("./%s/app/testpmd -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=signature" % (self.target, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
+ self.dut.send_expect("%s -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=signature" % (self.path, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
elif self.nic in ["fortville_eagle", "fortville_spirit", "fortville_spirit_single", "fortpark_TLV", "fortpark_BASE-T","fortville_25g", "carlsville"]:
# Fortville ipv6 support perfect mode
- self.dut.send_expect("./%s/app/testpmd -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=perfect" % (self.target, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
+ self.dut.send_expect("%s -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=perfect" % (self.path, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
self.dut.send_expect("set verbose 1", "testpmd>")
self.dut.send_expect("set fwd rxonly", "testpmd>")
@@ -402,7 +403,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
def test_fdir_noflexword_drop_ipv4(self):
# drop command testing
self.dut.kill_all()
- self.dut.send_expect("./%s/app/testpmd -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=perfect" % (self.target, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
+ self.dut.send_expect("%s -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=perfect" % (self.path, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
self.dut.send_expect("set verbose 1", "testpmd>")
self.dut.send_expect("set fwd rxonly", "testpmd>")
@@ -480,7 +481,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
# drop command testing
self.dut.kill_all()
- self.dut.send_expect("./%s/app/testpmd -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=perfect" % (self.target, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
+ self.dut.send_expect("%s -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=perfect" % (self.path, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
self.dut.send_expect("set verbose 1", "testpmd>")
self.dut.send_expect("set fwd rxonly", "testpmd>")
@@ -537,7 +538,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
self.dut.kill_all()
# fwd testing with flexword
- self.dut.send_expect("./%s/app/testpmd -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=perfect" % (self.target, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
+ self.dut.send_expect("%s -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=perfect" % (self.path, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
self.dut.send_expect("set verbose 1", "testpmd>")
self.dut.send_expect("set fwd rxonly", "testpmd>")
@@ -616,10 +617,10 @@ class TestFdir(TestCase, IxiaPacketGenerator):
# fwd testing with flexword
if self.nic in ["niantic", "sagepond", "sageville"]:
# Niantic ipv6 only support signature mode
- self.dut.send_expect("./%s/app/testpmd -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=signature" % (self.target, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
+ self.dut.send_expect("%s -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=signature" % (self.path, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
elif self.nic in ["fortville_eagle", "fortville_spirit", "fortville_spirit_single", "fortpark_TLV","fortpark_BASE-T", "fortville_25g", "carlsville"]:
# fortville ipv6 support perfect mode
- self.dut.send_expect("./%s/app/testpmd -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=perfect" % (self.target, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
+ self.dut.send_expect("%s -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=perfect" % (self.path, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
self.dut.send_expect("set verbose 1", "testpmd>")
self.dut.send_expect("set fwd rxonly", "testpmd>")
@@ -686,7 +687,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
def test_fdir_flexword_drop_ipv4(self):
# drop testing with flexword
- self.dut.send_expect("./%s/app/testpmd -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=perfect" % (self.target, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
+ self.dut.send_expect("%s -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=perfect" % (self.path, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
self.dut.send_expect("set verbose 1", "testpmd>")
self.dut.send_expect("set fwd rxonly", "testpmd>")
@@ -744,7 +745,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
# Niantic is not support in drop ipv6
if (self.nic in ["fortville_eagle", "fortville_spirit", "fortville_spirit_single", "fortpark_TLV", "fortpark_BASE-T","fortville_25g", "carlsville"]):
# drop testing with flexword
- self.dut.send_expect("./%s/app/testpmd -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=perfect" % (self.target, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
+ self.dut.send_expect("%s -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=perfect" % (self.path, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
self.dut.send_expect("set verbose 1", "testpmd>")
self.dut.send_expect("set fwd rxonly", "testpmd>")
@@ -787,7 +788,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
if not self.nic in ["fortville_eagle", "fortville_spirit", "fortville_spirit_single", "fortville_25g", "carlsville", "foxville"]:
self.verify(False, "This case only support fortville nic")
self.dut.kill_all()
- self.dut.send_expect("./%s/app/testpmd -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=perfect" % (self.target, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
+ self.dut.send_expect("%s -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=perfect" % (self.path, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
self.dut.send_expect("set verbose 1", "testpmd>")
self.dut.send_expect("set fwd rxonly", "testpmd>")
@@ -908,7 +909,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
if not self.nic in ["fortville_eagle", "fortville_spirit", "fortville_spirit_single", "fortville_25g", "carlsville", "foxville"]:
self.verify(False, "This case only support fortville nic")
self.dut.kill_all()
- self.dut.send_expect("./%s/app/testpmd -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=perfect" % (self.target, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
+ self.dut.send_expect("%s -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=perfect" % (self.path, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
self.dut.send_expect("set verbose 1", "testpmd>")
self.dut.send_expect("set fwd rxonly", "testpmd>")
@@ -1029,7 +1030,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
if not self.nic in ["fortville_eagle", "fortville_spirit", "fortville_spirit_single", "fortville_25g", "carlsville", "foxville"]:
self.verify(False, "This case only support fortville nic")
self.dut.kill_all()
- self.dut.send_expect("./%s/app/testpmd -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=perfect" % (self.target, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
+ self.dut.send_expect("%s -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=4 --txq=4 --nb-cores=4 --nb-ports=1 --pkt-filter-mode=perfect" % (self.path, self.coreMask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
self.dut.send_expect("set verbose 1", "testpmd>")
self.dut.send_expect("set fwd rxonly", "testpmd>")
@@ -1124,7 +1125,7 @@ class TestFdir(TestCase, IxiaPacketGenerator):
self.dut.kill_all()
- self.dut.send_expect("./%s/app/testpmd -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=8 --txq=8 --nb-cores=16 --nb-ports=2 --pkt-filter-mode=perfect" % (self.target, self.all_cores_mask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
+ self.dut.send_expect("%s -c %s -n 4 -- -i --portmask=%s --disable-rss --rxq=8 --txq=8 --nb-cores=16 --nb-ports=2 --pkt-filter-mode=perfect" % (self.path, self.all_cores_mask, utils.create_mask([self.dut_ports[0]])), "testpmd>", 120)
self.dut.send_expect("set verbose 1", "testpmd>")
self.dut.send_expect("set fwd rxonly", "testpmd>")
@@ -1212,13 +1213,13 @@ class TestFdir(TestCase, IxiaPacketGenerator):
port_mask = utils.create_mask([self.dut_ports[0], self.dut_ports[1]])
if test_type == "fdir_disable":
- command_line = "./%s/app/testpmd -c 0xff00ff -n %d -- -i --rxq=2 --txq=2 --rxd=512 --txd=512 --burst=32 --rxfreet=64 --txfreet=64 --mbcache=256 \
+ command_line = "%s -c 0xff00ff -n %d -- -i --rxq=2 --txq=2 --rxd=512 --txd=512 --burst=32 --rxfreet=64 --txfreet=64 --mbcache=256 \
--portmask=%s --nb-cores=4 --nb-ports=2 --rss-ip\
- " % (self.target, self.dut.get_memory_channels(), port_mask)
+ " % (self.path, self.dut.get_memory_channels(), port_mask)
else:
- command_line = "./%s/app/testpmd -c 0xff00ff -n %d -- -i --rxq=2 --txq=2 --rxd=512 --txd=512 --burst=32 --rxfreet=64 --txfreet=64 --mbcache=256 \
+ command_line = "%s -c 0xff00ff -n %d -- -i --rxq=2 --txq=2 --rxd=512 --txd=512 --burst=32 --rxfreet=64 --txfreet=64 --mbcache=256 \
--portmask=%s --nb-cores=4 --nb-ports=2 --rss-ip\
- --pkt-filter-mode=perfect" % (self.target, self.dut.get_memory_channels(), port_mask)
+ --pkt-filter-mode=perfect" % (self.path, self.dut.get_memory_channels(), port_mask)
info = "Executing PMD using %s\n" % test_cycle['cores']
self.logger.info(info)
--
1.8.3.1
next prev parent reply other threads:[~2020-09-04 8:17 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-04 8:18 [dts] [dts 01/38] tests-TestSuite_dpdk_gro_lib.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 02/38] tests-TestSuite_dpdk_gso_lib.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 03/38] tests-TestSuite_dynamic_config.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 04/38] " xizhan4x
2020-09-04 8:18 ` xizhan4x [this message]
2020-09-04 8:18 ` [dts] [dts 06/38] tests-TestSuite_flow_classify.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 07/38] tests-TestSuite_fortville_rss_granularity_config.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 08/38] tests-TestSuite_generic_flow_api.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 09/38] tests-TestSuite_hotplug.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 10/38] tests-TestSuite_hotplug_mp.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 11/38] tests-TestSuite_interrupt_pmd.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 12/38] tests-TestSuite_ipgre.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 13/38] tests-TestSuite_l2fwd_jobstats.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 14/38] tests/TestSuite_loopback_multi_paths_port_restart.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 15/38] tests/TestSuite_loopback_multi_queues.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 16/38] tests/TestSuite_loopback_virtio_user_server_mode.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 17/38] tests/TestSuite_multiple_pthread.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 18/38] tests/TestSuite_ntb.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 19/38] tests/TestSuite_nvgre.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 20/38] tests/TestSuite_perf_virtio_user_loopback.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 21/38] tests/TestSuite_perf_vm2vm_virtio_net_perf.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 22/38] tests/TestSuite_pmdpcap.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 23/38] tests/TestSuite_pmdrss_hash.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 24/38] tests/TestSuite_pvp_diff_qemu_version.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 25/38] tests/TestSuite_pvp_multi_paths_performance.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 26/38] tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 27/38] tests/TestSuite_pvp_multi_paths_virtio_single_core_performance.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 28/38] tests/TestSuite_pvp_qemu_multi_paths_port_restart.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 29/38] tests/TestSuite_pvp_share_lib.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 30/38] tests/TestSuite_pvp_vhost_user_built_in_net_driver.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 31/38] tests/TestSuite_pvp_vhost_user_reconnect.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 32/38] tests/TestSuite_pvp_virtio_user_2M_hugepages.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 33/38] tests/TestSuite_qinq_filter.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 34/38] tests/TestSuite_queue_start_stop.py: xizhan4x
2020-09-04 8:18 ` [dts] [dts 35/38] tests/TestSuite_softnic.py:support meson build xizhan4x
2020-09-04 8:18 ` [dts] [dts 36/38] tests/TestSuite_tso.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 37/38] tests/TestSuite_vxlan.py:support " xizhan4x
2020-09-04 8:18 ` [dts] [dts 38/38] tests/TestSuite_vxlan_gpe_support_in_i40e.py:support " xizhan4x
2020-09-07 5:20 ` [dts] [dts 01/38] tests-TestSuite_dpdk_gro_lib.py:support " Ma, LihongX
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=1599207525-22123-5-git-send-email-xix.zhang@intel.com \
--to=xix.zhang@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).