From: xizhan4x <xix.zhang@intel.com>
To: dts@dpdk.org
Cc: xizhan4x <xix.zhang@intel.com>
Subject: [dts] [dts 31/38] tests/TestSuite_pvp_vhost_user_reconnect.py:support meson build
Date: Fri, 4 Sep 2020 16:18:38 +0800 [thread overview]
Message-ID: <1599207525-22123-31-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_pvp_vhost_user_reconnect.py | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/tests/TestSuite_pvp_vhost_user_reconnect.py b/tests/TestSuite_pvp_vhost_user_reconnect.py
index b609115..026e03d 100644
--- a/tests/TestSuite_pvp_vhost_user_reconnect.py
+++ b/tests/TestSuite_pvp_vhost_user_reconnect.py
@@ -82,13 +82,15 @@ class TestPVPVhostUserReconnect(TestCase):
self.tester.send_expect('mkdir -p %s' % self.out_path, '# ')
# create an instance to set stream field setting
self.pktgen_helper = PacketGeneratorHelper()
+ self.path=self.dut.apps_name['test-pmd']
+ self.testpmd_name = self.path.split("/")[-1]
def set_up(self):
"""
run before each test case.
clear the execution ENV
"""
- self.dut.send_expect("killall -s INT testpmd", "# ")
+ self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#")
self.dut.send_expect("killall -s INT qemu-system-x86_64", "# ")
self.dut.send_expect("rm -rf ./vhost-net*", "# ")
self.vhost_user = self.dut.new_session(suite="vhost-user")
@@ -100,7 +102,7 @@ class TestPVPVhostUserReconnect(TestCase):
vdev_info = ""
for i in range(self.vm_num):
vdev_info += "--vdev 'net_vhost%d,iface=vhost-net%d,client=1,queues=1' " % (i, i)
- testcmd = self.dut.base_dir + "/%s/app/testpmd " % self.target
+ testcmd = self.dut.base_dir + self.path
eal_params = self.dut.create_eal_parameters(cores=self.cores, prefix='vhost', ports=[self.pci_info])
para = " -- -i --port-topology=chained --nb-cores=1 --txd=1024 --rxd=1024"
self.vhostapp_testcmd = testcmd + eal_params + vdev_info + para
@@ -115,7 +117,7 @@ class TestPVPVhostUserReconnect(TestCase):
vdev_info = ""
for i in range(self.vm_num):
vdev_info += "--vdev 'net_vhost%d,iface=vhost-net%d,client=1,queues=1' " % (i, i)
- testcmd = self.dut.base_dir + "/%s/app/testpmd " % self.target
+ testcmd = self.dut.base_dir + self.path
eal_params = self.dut.create_eal_parameters(cores=self.cores, no_pci=True, prefix='vhost',
ports=[self.pci_info])
para = " -- -i --nb-cores=1 --txd=1024 --rxd=1024"
@@ -198,7 +200,7 @@ class TestPVPVhostUserReconnect(TestCase):
"""
start testpmd in vm
"""
- vm_testpmd = self.dut.target + "/app/testpmd -c 0x3 -n 4 " + \
+ vm_testpmd = self.path+ " -c 0x3 -n 4 " + \
"-- -i --port-topology=chained --txd=1024 --rxd=1024 "
for i in range(len(self.vm_dut)):
self.vm_dut[i].send_expect(vm_testpmd, "testpmd> ", 20)
@@ -329,7 +331,7 @@ class TestPVPVhostUserReconnect(TestCase):
# reconnet from vhost
self.logger.info('now reconnect from vhost')
for i in range(self.reconnect_times):
- self.dut.send_expect("killall -s INT testpmd", "# ")
+ self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#")
self.launch_testpmd_as_vhost_user()
self.reconnect_data = self.send_and_verify(vm_cycle, "reconnet from vhost")
self.check_reconnect_perf()
@@ -362,7 +364,7 @@ class TestPVPVhostUserReconnect(TestCase):
# reconnet from vhost
self.logger.info('now reconnect from vhost')
for i in range(self.reconnect_times):
- self.dut.send_expect("killall -s INT testpmd", "# ")
+ self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#")
self.launch_testpmd_as_vhost_user()
self.reconnect_data = self.send_and_verify(vm_cycle, "reconnet from vhost")
self.check_reconnect_perf()
@@ -395,7 +397,7 @@ class TestPVPVhostUserReconnect(TestCase):
# reconnet from vhost
self.logger.info('now reconnect from vhost')
for i in range(self.reconnect_times):
- self.dut.send_expect("killall -s INT testpmd", "# ")
+ self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#")
self.launch_testpmd_as_vhost_user_with_no_pci()
self.start_iperf()
self.reconnect_data = self.iperf_result_verify(vm_cycle, 'reconnet from vhost')
@@ -433,7 +435,7 @@ class TestPVPVhostUserReconnect(TestCase):
# reconnet from vhost
self.logger.info('now reconnect from vhost')
for i in range(self.reconnect_times):
- self.dut.send_expect("killall -s INT testpmd", "# ")
+ self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#")
self.launch_testpmd_as_vhost_user()
self.reconnect_data = self.send_and_verify(vm_cycle, "reconnet from vhost")
self.check_reconnect_perf()
@@ -466,7 +468,7 @@ class TestPVPVhostUserReconnect(TestCase):
# reconnet from vhost
self.logger.info('now reconnect from vhost')
for i in range(self.reconnect_times):
- self.dut.send_expect("killall -s INT testpmd", "# ")
+ self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#")
self.launch_testpmd_as_vhost_user()
self.reconnect_data = self.send_and_verify(vm_cycle, "reconnet from vhost")
self.check_reconnect_perf()
@@ -498,7 +500,7 @@ class TestPVPVhostUserReconnect(TestCase):
# reconnet from vhost
self.logger.info('now reconnect from vhost')
for i in range(self.reconnect_times):
- self.dut.send_expect("killall -s INT testpmd", "# ")
+ self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#")
self.launch_testpmd_as_vhost_user_with_no_pci()
self.start_iperf()
self.reconnect_data = self.iperf_result_verify(vm_cycle, 'reconnet from vhost')
--
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 ` [dts] [dts 05/38] tests-TestSuite_fdir.py:support " xizhan4x
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 ` xizhan4x [this message]
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-31-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).