test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Zhou, Jun" <junx.w.zhou@intel.com>
To: dts@dpdk.org
Cc: Zhou jun <junx.w.zhou@intel.com>
Subject: [dts] [dts 35/38] tests/TestSuite_vm2vm_virtio_pmd.py: adapt to support both meson and makefile build
Date: Tue,  8 Sep 2020 07:18:22 +0000	[thread overview]
Message-ID: <20200908071825.118583-36-junx.w.zhou@intel.com> (raw)
In-Reply-To: <20200908071825.118583-1-junx.w.zhou@intel.com>

From: Zhou jun <junx.w.zhou@intel.com>

Signed-off-by: Zhou jun <junx.w.zhou@intel.com>
---
 tests/TestSuite_vm2vm_virtio_pmd.py | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

diff --git a/tests/TestSuite_vm2vm_virtio_pmd.py b/tests/TestSuite_vm2vm_virtio_pmd.py
index c26a084..5adeb2f 100644
--- a/tests/TestSuite_vm2vm_virtio_pmd.py
+++ b/tests/TestSuite_vm2vm_virtio_pmd.py
@@ -59,6 +59,8 @@ class TestVM2VMVirtioPMD(TestCase):
         self.virtio_user0 = None
         self.virtio_user1 = None
         self.pci_info = self.dut.ports_info[0]['pci']
+        self.app_testpmd_path = self.dut.apps_name['test-pmd']
+        self.app_pdump = self.dut.apps_name['pdump']
 
     def set_up(self):
         """
@@ -88,6 +90,7 @@ class TestVM2VMVirtioPMD(TestCase):
         enable pcap lib in dpdk code and recompile
         """
         client_dut.send_expect("sed -i 's/CONFIG_RTE_LIBRTE_PMD_PCAP=n$/CONFIG_RTE_LIBRTE_PMD_PCAP=y/' config/common_base", "#")
+        client_dut.set_build_options({'RTE_LIBRTE_PMD_PCAP': 'y'})
         client_dut.build_install_dpdk(self.target)
 
     def disable_pcap_lib_in_dpdk(self, client_dut):
@@ -95,6 +98,7 @@ class TestVM2VMVirtioPMD(TestCase):
         reset pcap lib in dpdk and recompile
         """
         client_dut.send_expect("sed -i 's/CONFIG_RTE_LIBRTE_PMD_PCAP=y$/CONFIG_RTE_LIBRTE_PMD_PCAP=n/' config/common_base", "#")
+        client_dut.set_build_options({'RTE_LIBRTE_PMD_PCAP': 'n'})
         client_dut.build_install_dpdk(self.target)
 
     def start_vhost_testpmd(self):
@@ -102,7 +106,7 @@ class TestVM2VMVirtioPMD(TestCase):
         launch the testpmd on vhost side
         """
         vhost_mask = self.cores_list[0:2]
-        testcmd = self.dut.target + "/app/testpmd "
+        testcmd = self.app_testpmd_path + " "
         vdev1 = "--vdev 'net_vhost0,iface=%s/vhost-net0,queues=1' " % self.base_dir
         vdev2 = "--vdev 'net_vhost1,iface=%s/vhost-net1,queues=1' " % self.base_dir
         eal_params = self.dut.create_eal_parameters(cores=vhost_mask, no_pci=True, prefix='vhost', ports=[self.pci_info])
@@ -123,7 +127,7 @@ class TestVM2VMVirtioPMD(TestCase):
         """
         self.virtio_user1 = self.dut.new_session(suite="virtio_user1")
         virtio_mask = self.cores_list[2:4]
-        testcmd = self.dut.target + "/app/testpmd "
+        testcmd = self.app_testpmd_path + " "
         vdev = "--vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,%s " % path_mode
         eal_params = self.dut.create_eal_parameters(cores=virtio_mask, no_pci=True, prefix='virtio', ports=[self.pci_info])
         if self.check_2M_env:
@@ -140,7 +144,7 @@ class TestVM2VMVirtioPMD(TestCase):
         """
         self.virtio_user0 = self.dut.new_session(suite="virtio_user0")
         virtio_mask = self.cores_list[4:6]
-        testcmd = self.dut.target + "/app/testpmd "
+        testcmd = self.app_testpmd_path + " "
         vdev = "--vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net0,queues=1,%s " % path_mode
         eal_params = self.dut.create_eal_parameters(cores=virtio_mask, no_pci=True, prefix='virtio0', ports=[self.pci_info])
         if self.check_2M_env:
@@ -161,17 +165,17 @@ class TestVM2VMVirtioPMD(TestCase):
         w_pci_list.append('-w %s,%s' % (virtio_net_pci, 'vectorized=1'))
         w_pci_str = ' '.join(w_pci_list)
         if path_mode == "mergeable":
-            command = self.dut.target + "/app/testpmd -c 0x3 -n 4 " + \
+            command = self.app_testpmd_path + " -c 0x3 -n 4 " + \
                         "--file-prefix=virtio -- -i --tx-offloads=0x00 " + \
                         "--enable-hw-vlan-strip --txd=1024 --rxd=1024 %s"
             vm_client.send_expect(command % extern_param, "testpmd> ", 20)
         elif path_mode == "normal":
-            command = self.dut.target + "/app/testpmd -c 0x3 -n 4 " + \
+            command = self.app_testpmd_path + " -c 0x3 -n 4 " + \
                         "--file-prefix=virtio -- -i --tx-offloads=0x00 " + \
                         "--enable-hw-vlan-strip --txd=1024 --rxd=1024 %s"
             vm_client.send_expect(command % extern_param, "testpmd> ", 20)
         elif path_mode == "vector_rx":
-            command = self.dut.target + "/app/testpmd -c 0x3 -n 4 " + \
+            command = self.app_testpmd_path + " -c 0x3 -n 4 " + \
                         "--file-prefix=virtio %s -- -i --txd=1024 --rxd=1024 %s"
             vm_client.send_expect(command % (w_pci_str, extern_param), "testpmd> ", 20)
 
@@ -181,12 +185,12 @@ class TestVM2VMVirtioPMD(TestCase):
         """
         self.pdump_session = client_dut.new_session(suite="pdump")
         if hasattr(client_dut, "vm_name"):
-            command_line = self.target + "/app/dpdk-pdump " + \
+            command_line = self.app_pdump + " " + \
                     "-v --file-prefix=virtio -- " + \
                     "--pdump  '%s,queue=*,rx-dev=%s,mbuf-size=8000'"
             self.pdump_session.send_expect(command_line % (dump_port, self.dump_pcap), 'Port')
         else:
-            command_line = self.target + "/app/dpdk-pdump " + \
+            command_line = self.app_pdump + " " + \
                     "-v --file-prefix=virtio_%s -- " + \
                     "--pdump  '%s,queue=*,rx-dev=%s,mbuf-size=8000'"
             self.pdump_session.send_expect(command_line % (self.dut.prefix_subfix, dump_port, self.dump_pcap), 'Port')
-- 
1.8.3.1


  parent reply	other threads:[~2020-09-08  7:30 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-08  7:17 [dts] [PATCH V1 00/38] Modify suites to support meson Zhou, Jun
2020-09-08  7:17 ` [dts] [dts 01/38] tests/TestSuite_cmdline.py: adapt to support both meson and makefile build Zhou, Jun
2020-09-08  7:17 ` [dts] [dts 02/38] tests/TestSuite_coremask.py: " Zhou, Jun
2020-09-08  7:17 ` [dts] [dts 03/38] tests/TestSuite_distributor.py: " Zhou, Jun
2020-09-08  7:17 ` [dts] [dts 04/38] tests/TestSuite_efd.py: " Zhou, Jun
2020-09-08  7:17 ` [dts] [dts 05/38] tests/TestSuite_external_memory.py: " Zhou, Jun
2020-09-08  7:17 ` [dts] [dts 06/38] tests/TestSuite_external_mempool_handler.py: " Zhou, Jun
2020-09-08  7:17 ` [dts] [dts 07/38] tests/TestSuite_flow_classify_softnic.py: " Zhou, Jun
2020-09-08  7:17 ` [dts] [dts 08/38] tests/TestSuite_hello_world.py: " Zhou, Jun
2020-09-08  7:17 ` [dts] [dts 09/38] tests/TestSuite_inline_ipsec.py: " Zhou, Jun
2020-09-08  7:17 ` [dts] [dts 10/38] tests/TestSuite_ip_pipeline.py: " Zhou, Jun
2020-09-08  7:17 ` [dts] [dts 11/38] tests/TestSuite_ipfrag.py: " Zhou, Jun
2020-09-08  7:17 ` [dts] [dts 12/38] tests/TestSuite_ipv4_reassembly.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 13/38] tests/TestSuite_keep_alive.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 14/38] tests/TestSuite_kni.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 15/38] tests/TestSuite_l2fwd.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 16/38] tests/TestSuite_l3fwdacl.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 17/38] tests/TestSuite_link_status_interrupt.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 18/38] tests/TestSuite_metering_and_policing.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 19/38] tests/TestSuite_multicast.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 20/38] tests/TestSuite_pvp_virtio_user_4k_pages.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 21/38] tests/TestSuite_pvp_virtio_user_multi_queues_port_restart.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 22/38] tests/TestSuite_short_live.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 23/38] tests/TestSuite_skeleton.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 24/38] tests/TestSuite_timer.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 25/38] tests/TestSuite_userspace_ethtool.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 26/38] tests/TestSuite_vdev_primary_secondary.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 27/38] tests/TestSuite_vhost_pmd_xstats.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 28/38] tests/TestSuite_vhost_user_interrupt.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 29/38] tests/TestSuite_vhost_virtio_pmd_interrupt.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 30/38] tests/TestSuite_vhost_virtio_user_interrupt.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 31/38] tests/TestSuite_virtio_event_idx_interrupt.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 32/38] tests/TestSuite_virtio_pvp_regression.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 33/38] tests/TestSuite_virtio_user_as_exceptional_path.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 34/38] tests/TestSuite_vm2vm_virtio_net_perf.py: " Zhou, Jun
2020-09-08  7:18 ` Zhou, Jun [this message]
2020-09-08  7:18 ` [dts] [dts 36/38] tests/TestSuite_vm2vm_virtio_user.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 37/38] tests/TestSuite_vmdq.py: " Zhou, Jun
2020-09-08  7:18 ` [dts] [dts 38/38] tests/TestSuite_vxlan_sample.py: " Zhou, Jun
2020-09-08  7:34 ` [dts] [PATCH V1 00/38] Modify suites to support meson Zhou, JunX W
2020-09-08  9:05   ` Tu, Lijuan

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=20200908071825.118583-36-junx.w.zhou@intel.com \
    --to=junx.w.zhou@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).