test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V2] tests/pvp_diff_qemu_version:add create_eal_parameters function.
@ 2020-02-28  1:32 zhu,shuai
  2020-02-28  1:30 ` Zhu, ShuaiX
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: zhu,shuai @ 2020-02-28  1:32 UTC (permalink / raw)
  To: dts; +Cc: zhu,shuai



Signed-off-by: zhu,shuai <shuaix.zhu@intel.com>
---
 tests/TestSuite_pvp_diff_qemu_version.py | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/tests/TestSuite_pvp_diff_qemu_version.py b/tests/TestSuite_pvp_diff_qemu_version.py
index 226693f..b9ce822 100644
--- a/tests/TestSuite_pvp_diff_qemu_version.py
+++ b/tests/TestSuite_pvp_diff_qemu_version.py
@@ -63,8 +63,6 @@ class TestVhostPVPDiffQemuVersion(TestCase):
         self.verify(self.cores_num >= 3,
                     "There has not enought cores to test this suite")
         self.cores = self.dut.get_core_list("1S/3C/1T", socket=self.socket)
-        self.coremask = utils.create_mask(self.cores)
-        self.memory_channel = 4
         self.vm_dut = None
         self.packet_params_set()
 
@@ -82,6 +80,7 @@ class TestVhostPVPDiffQemuVersion(TestCase):
         # create an instance to set stream field setting
         self.pktgen_helper = PacketGeneratorHelper()
         self.base_dir = self.dut.base_dir.replace('~', '/root')
+        self.pci_info = self.dut.ports_info[0]['pci']
 
     def set_up(self):
         """
@@ -201,12 +200,11 @@ class TestVhostPVPDiffQemuVersion(TestCase):
         """
         Launch the vhost testpmd
         """
-        command_line_client = self.dut.target + "/app/testpmd -n %d -c %s \
-            --socket-mem 1024,1024 --file-prefix=vhost \
-            --vdev 'eth_vhost0,iface=%s/vhost-net,queues=1' -- \
-            -i --nb-cores=1 --txd=1024 --rxd=1024"
-        command_line_client = command_line_client % (
-                              self.memory_channel, self.coremask, self.base_dir)
+        testcmd = self.dut.target + "/app/testpmd "
+        vdev = [r"'eth_vhost0,iface=%s/vhost-net,queues=1'" % self.base_dir]
+        eal_params = self.dut.create_eal_parameters(cores=self.cores, prefix='vhost', ports=[self.pci_info], vdevs=vdev)
+        para = " -- -i --nb-cores=1 --txd=1024 --rxd=1024"
+        command_line_client = testcmd + eal_params + para
         self.vhost.send_expect(command_line_client, "testpmd> ", 30)
         self.vhost.send_expect("set fwd mac", "testpmd> ", 30)
         self.vhost.send_expect("start", "testpmd> ", 30)
-- 
2.17.2


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2020-03-03  7:24 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-28  1:32 [dts] [PATCH V2] tests/pvp_diff_qemu_version:add create_eal_parameters function zhu,shuai
2020-02-28  1:30 ` Zhu, ShuaiX
2020-02-28  1:32 ` [dts] [PATCH V2] tests/pvp_qemu_multi_paths_port_restart:add " zhu,shuai
2020-02-28  1:32   ` Zhu, ShuaiX
2020-03-03  7:24   ` Tu, Lijuan
2020-02-28  1:32 ` [dts] [PATCH V2] tests/pvp_virtio_user_2M_hugepages:add " zhu,shuai
2020-02-28  1:32   ` Zhu, ShuaiX
2020-03-03  7:24   ` Tu, Lijuan
2020-02-28  1:32 ` [dts] [PATCH V2] tests/virtio_pvp_regression:add " zhu,shuai
2020-02-28  1:31   ` Zhu, ShuaiX
2020-03-03  7:24   ` Tu, Lijuan
2020-02-28  1:32 ` [dts] [PATCH V2] tests/virtio_user_as_exceptional_path:add " zhu,shuai
2020-02-28  1:34   ` Zhu, ShuaiX
2020-03-03  7:24   ` Tu, Lijuan
2020-02-28  1:32 ` [dts] [PATCH V2] tests/vm2vm_virtio_pmd:add " zhu,shuai
2020-02-28  1:35   ` Zhu, ShuaiX
2020-03-03  7:24   ` Tu, Lijuan

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).