test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/vhost_pmd_xstats: add allow pci param to support tester and dut in same server and optimize code
@ 2021-03-10  7:55 Ling Wei
  2021-03-10  7:58 ` Ling, WeiX
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ling Wei @ 2021-03-10  7:55 UTC (permalink / raw)
  To: dts; +Cc: Ling Wei

1.Add -a option to support tester and dut in same server.
2.Use pmd.start_testpmd() to replace session.send_expect()
  to start testpmd.
3.Move create dut ssh session from set_up to set_up_all
  to reduce the number of creation.
4.Add close dut session in tear_down_all to close session
  when suite execute over.

Signed-off-by: Ling Wei <weix.ling@intel.com>
---
 tests/TestSuite_vhost_pmd_xstats.py | 65 +++++++++++++----------------
 1 file changed, 29 insertions(+), 36 deletions(-)
 mode change 100755 => 100644 tests/TestSuite_vhost_pmd_xstats.py

diff --git a/tests/TestSuite_vhost_pmd_xstats.py b/tests/TestSuite_vhost_pmd_xstats.py
old mode 100755
new mode 100644
index a3b0a2f3..016348d1
--- a/tests/TestSuite_vhost_pmd_xstats.py
+++ b/tests/TestSuite_vhost_pmd_xstats.py
@@ -43,6 +43,7 @@ from test_case import TestCase
 from settings import HEADER_SIZE
 from qemu_kvm import QEMUKvm
 from packet import Packet
+from pmd_output import PmdOutput
 ETHER_JUMBO_FRAME_MTU = 9000
 DEFAULT_JUMBO_FRAME_MTU = 1500
 
@@ -63,17 +64,18 @@ class TestVhostPmdXstats(TestCase):
         self.virtio1_mac = "52:54:00:00:00:01"
         self.core_config = "1S/6C/1T"
         self.ports_socket = self.dut.get_numa_id(self.dut_ports[0])
-        self.cores_num = len([n for n in self.dut.cores if int(n['socket'])
-                              == self.ports_socket])
-        self.verify(self.cores_num >= 6,
-                    "There has not enough cores to test this case")
-        self.core_list = self.dut.get_core_list(
-            self.core_config, socket=self.ports_socket)
+        self.cores_num = len([n for n in self.dut.cores if int(n['socket']) == self.ports_socket])
+        self.verify(self.cores_num >= 6, "There has not enough cores to test this case")
+        self.core_list = self.dut.get_core_list(self.core_config, socket=self.ports_socket)
         self.core_list_user = self.core_list[0:3]
         self.core_list_host = self.core_list[3:6]
         self.dst_mac = self.dut.get_mac_address(self.dut_ports[0])
         self.app_testpmd_path = self.dut.apps_name['test-pmd']
         self.testpmd_name=self.app_testpmd_path.split("/")[-1]
+        self.vhost_user = self.dut.new_session(suite="vhost-user")
+        self.virtio_user0 = self.dut.new_session(suite="virtio-user0")
+        self.vhost_user_pmd = PmdOutput(self.dut, self.vhost_user)
+        self.virtio_user0_pmd = PmdOutput(self.dut, self.virtio_user0)
 
     def set_up(self):
         """ 
@@ -82,8 +84,6 @@ class TestVhostPmdXstats(TestCase):
         """
         self.dut.send_expect("rm -rf ./vhost-net*", "#")
         self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#")
-        self.vhost_user = self.dut.new_session(suite="vhost-user")
-        self.virtio_user = self.dut.new_session(suite="virtio-user")
 
     @property
     def check_2M_env(self):
@@ -103,49 +103,42 @@ class TestVhostPmdXstats(TestCase):
         """
         according the scope to check results
         """
-        out = self.vhost_user.send_expect(
-            "show port xstats 1", "testpmd>", 60)
+        out = self.vhost_user_pmd.execute_cmd("show port xstats 1")
         packet_rx = re.search("rx_%s_packets:\s*(\d*)" % scope, out)
         sum_packet_rx = packet_rx.group(1)
         packet_tx = re.search("tx_%s_packets:\s*(\d*)" % scope, out)
         sum_packet_tx = packet_tx.group(1)
-        self.verify(int(sum_packet_rx) >= mun,
-                    "Insufficient the received packets from nic")
-        self.verify(int(sum_packet_tx) >= mun,
-                    "Insufficient the received packets from virtio")
+        self.verify(int(sum_packet_rx) >= mun, "Insufficient the received packets from nic")
+        self.verify(int(sum_packet_tx) >= mun, "Insufficient the received packets from virtio")
 
     def start_vhost_testpmd(self):
         """
         start testpmd on vhost
         """
-        eal_param = self.dut.create_eal_parameters(socket=self.ports_socket, cores=self.core_list_host, prefix='vhost',
-                                                   vdevs=['net_vhost0,iface=vhost-net,queues=2,client=0'])
-        command_line_client = "./%s " % self.app_testpmd_path + eal_param + ' -- -i --nb-cores=2 --rxq=2 --txq=2 --rss-ip'
-        self.vhost_user.send_expect(command_line_client, "testpmd> ", 120)
-        self.vhost_user.send_expect("set fwd io", "testpmd> ", 120)
-        self.vhost_user.send_expect("start", "testpmd> ", 120)
+        vdevs = ['net_vhost0,iface=vhost-net,queues=2,client=0']
+        param = "--nb-cores=2 --rxq=2 --txq=2"
+        self.vhost_user_pmd.start_testpmd(cores=self.core_list_host, param=param, vdevs=vdevs,ports=[0], prefix="vhost")
+        self.vhost_user_pmd.execute_cmd("set fwd io")
+        self.vhost_user_pmd.execute_cmd("start")
 
     def start_virtio_testpmd(self, args):
         """
         start testpmd on virtio
         """
-        eal_param = self.dut.create_eal_parameters(socket=self.ports_socket, cores=self.core_list_user, prefix='virtio',
-                                                   no_pci=True, vdevs=[
-                'net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,%s' % args["version"]])
+        eal_param = ""
         if self.check_2M_env:
             eal_param += " --single-file-segments"
-        command_line_user = "./%s " % self.app_testpmd_path + eal_param + " -- -i %s --rss-ip --nb-cores=2 --rxq=2 --txq=2" % \
-                            args["path"]
-        self.virtio_user.send_expect(command_line_user, "testpmd> ", 120)
-        self.virtio_user.send_expect("set fwd io", "testpmd> ", 120)
-        self.virtio_user.send_expect("start", "testpmd> ", 120)
+        vdevs = ['net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,%s' % args["version"]]
+        param =  "%s --rss-ip --nb-cores=2 --rxq=2 --txq=2" % args["path"]
+        self.virtio_user0_pmd.start_testpmd(cores=self.core_list_user, eal_param=eal_param, param=param, vdevs=vdevs, no_pci=True, prefix="virtio")
+        self.virtio_user0_pmd.execute_cmd("set fwd io")
+        self.virtio_user0_pmd.execute_cmd("start")
 
     def xstats_number_and_type_verify(self):
         """
         Verify receiving and transmitting packets correctly in the Vhost PMD xstats
         """
-        out = self.vhost_user.send_expect(
-            "show port xstats 1", "testpmd>", 60)
+        out = self.vhost_user_pmd.execute_cmd("show port xstats 1")
         p = re.compile(r'rx_size_[0-9]+_[to_\w+]*packets')
         categories = p.findall(out)
         categories = categories[:-1]
@@ -330,14 +323,13 @@ class TestVhostPmdXstats(TestCase):
         """
         close all testpmd of vhost and virtio
         """
-        self.vhost_user.send_expect("quit", "#", 60)
-        self.virtio_user.send_expect("quit", "#", 60)
+        self.vhost_user_pmd.quit()
+        self.virtio_user0_pmd.quit()
 
     def clear_port_xstats(self, scope):
 
-        self.vhost_user.send_expect("clear port xstats 1", "testpmd>", 60)
-        out = self.vhost_user.send_expect(
-            "show port xstats 1", "testpmd>", 60)
+        self.vhost_user_pmd.execute_cmd("clear port xstats 1")
+        out = self.vhost_user_pmd.execute_cmd("show port xstats 1")
         packet = re.search("rx_%s_packets:\s*(\d*)" % scope, out)
         sum_packet = packet.group(1)
         self.verify(int(sum_packet) == 0, "Insufficient the received package")
@@ -352,4 +344,5 @@ class TestVhostPmdXstats(TestCase):
         """
         Run after each test suite.
         """
-        pass
+        self.dut.close_session(self.vhost_user)
+        self.dut.close_session(self.virtio_user0)
-- 
2.25.1


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

* Re: [dts] [PATCH V1] tests/vhost_pmd_xstats: add allow pci param to support tester and dut in same server and optimize code
  2021-03-10  7:55 [dts] [PATCH V1] tests/vhost_pmd_xstats: add allow pci param to support tester and dut in same server and optimize code Ling Wei
@ 2021-03-10  7:58 ` Ling, WeiX
  2021-03-15  7:00 ` Tu, Lijuan
  2021-03-15  7:54 ` Tu, Lijuan
  2 siblings, 0 replies; 4+ messages in thread
From: Ling, WeiX @ 2021-03-10  7:58 UTC (permalink / raw)
  To: dts

[-- Attachment #1: Type: text/plain, Size: 355 bytes --]

> -----Original Message-----
> From: Ling, WeiX <weix.ling@intel.com>
> Sent: Wednesday, March 10, 2021 03:55 PM
> To: dts@dpdk.org
> Cc: Ling, WeiX <weix.ling@intel.com>
> Subject: [dts][PATCH V1] tests/vhost_pmd_xstats: add allow pci param to
> support tester and dut in same server and optimize code

Tested-by: Wei Ling <weix.ling@intel.com>

[-- Attachment #2: TestVhostPmdXstats.log --]
[-- Type: application/octet-stream, Size: 20280 bytes --]

10/03/2021 15:14:28                            dts: 
TEST SUITE : TestVhostPmdXstats
10/03/2021 15:14:28                            dts: NIC :        fortville_spirit
10/03/2021 15:14:28             dut.10.240.183.214: 
10/03/2021 15:14:28                         tester: 
10/03/2021 15:14:28             dut.10.240.183.214: ls
10/03/2021 15:14:28             dut.10.240.183.214: ABI_VERSION  app  buildtoo  config  devtoo	doc  dpdk.log  drivers	examples  kernel  lib  license	MAINTAINERS  Makefile  meson.build  meson_options.txt  README  usertoo  VERSION  x86_64-native-linuxapp-gcc
10/03/2021 15:14:28             dut.10.240.183.214: usertools/dpdk-devbind.py --force -u 
10/03/2021 15:14:28             dut.10.240.183.214: Error: No devices specified.
usage: dpdk-devbind.py [-h] [-s] [--status-dev {baseband,compress,crypto,event,mempool,misc,net,regex}] [-b DRIVER | -u] [--force] [DEVICE [DEVICE ...]]
10/03/2021 15:14:32             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
10/03/2021 15:14:32             dut.10.240.183.214: 2048
10/03/2021 15:14:32             TestVhostPmdXstats: Test Case test_vhost_xstats_inorder_mergeable Begin
10/03/2021 15:14:32             dut.10.240.183.214: 
10/03/2021 15:14:32                         tester: 
10/03/2021 15:14:32             dut.10.240.183.214: rm -rf ./vhost-net*
10/03/2021 15:14:32             dut.10.240.183.214: 
10/03/2021 15:14:32             dut.10.240.183.214: killall -s INT dpdk-testpmd 
10/03/2021 15:14:32             dut.10.240.183.214: dpdk-testpmd: no process found
10/03/2021 15:14:43             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
10/03/2021 15:14:43             dut.10.240.183.214: 2048
10/03/2021 15:15:07                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:15:08                         tester: 
10/03/2021 15:15:21                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:15:22                         tester: 
10/03/2021 15:15:35                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:15:36                         tester: 
10/03/2021 15:15:50                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:15:50                         tester: 
10/03/2021 15:16:04                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:16:04                         tester: 
10/03/2021 15:16:18                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:16:18                         tester: 
10/03/2021 15:16:20             TestVhostPmdXstats: Test Case test_vhost_xstats_inorder_mergeable Result PASSED:
10/03/2021 15:16:20             dut.10.240.183.214: killall -s INT dpdk-testpmd 
10/03/2021 15:16:20             dut.10.240.183.214: dpdk-testpmd: no process found
10/03/2021 15:16:20             TestVhostPmdXstats: Test Case test_vhost_xstats_inorder_no_mergeable Begin
10/03/2021 15:16:20             dut.10.240.183.214:  
10/03/2021 15:16:20                         tester: 
10/03/2021 15:16:20             dut.10.240.183.214: rm -rf ./vhost-net*
10/03/2021 15:16:20             dut.10.240.183.214: 
10/03/2021 15:16:20             dut.10.240.183.214: killall -s INT dpdk-testpmd 
10/03/2021 15:16:20             dut.10.240.183.214: dpdk-testpmd: no process found
10/03/2021 15:16:31             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
10/03/2021 15:16:31             dut.10.240.183.214: 2048
10/03/2021 15:16:56                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:16:56                         tester: 
10/03/2021 15:17:10                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:17:10                         tester: 
10/03/2021 15:17:24                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:17:24                         tester: 
10/03/2021 15:17:38                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:17:38                         tester: 
10/03/2021 15:17:52                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:17:52                         tester: 
10/03/2021 15:18:06                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:18:06                         tester: 
10/03/2021 15:18:08             TestVhostPmdXstats: Test Case test_vhost_xstats_inorder_no_mergeable Result PASSED:
10/03/2021 15:18:08             dut.10.240.183.214: killall -s INT dpdk-testpmd 
10/03/2021 15:18:08             dut.10.240.183.214: dpdk-testpmd: no process found
10/03/2021 15:18:08             TestVhostPmdXstats: Test Case test_vhost_xstats_mergeable Begin
10/03/2021 15:18:08             dut.10.240.183.214:  
10/03/2021 15:18:08                         tester: 
10/03/2021 15:18:08             dut.10.240.183.214: rm -rf ./vhost-net*
10/03/2021 15:18:08             dut.10.240.183.214: 
10/03/2021 15:18:08             dut.10.240.183.214: killall -s INT dpdk-testpmd 
10/03/2021 15:18:08             dut.10.240.183.214: dpdk-testpmd: no process found
10/03/2021 15:18:19             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
10/03/2021 15:18:19             dut.10.240.183.214: 2048
10/03/2021 15:18:44                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:18:44                         tester: 
10/03/2021 15:18:58                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:18:58                         tester: 
10/03/2021 15:19:12                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:19:12                         tester: 
10/03/2021 15:19:26                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:19:26                         tester: 
10/03/2021 15:19:40                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:19:40                         tester: 
10/03/2021 15:19:54                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:19:54                         tester: 
10/03/2021 15:19:56             TestVhostPmdXstats: Test Case test_vhost_xstats_mergeable Result PASSED:
10/03/2021 15:19:56             dut.10.240.183.214: killall -s INT dpdk-testpmd 
10/03/2021 15:19:56             dut.10.240.183.214: dpdk-testpmd: no process found
10/03/2021 15:19:56             TestVhostPmdXstats: Test Case test_vhost_xstats_no_mergeable Begin
10/03/2021 15:19:56             dut.10.240.183.214:  
10/03/2021 15:19:56                         tester: 
10/03/2021 15:19:56             dut.10.240.183.214: rm -rf ./vhost-net*
10/03/2021 15:19:56             dut.10.240.183.214: 
10/03/2021 15:19:56             dut.10.240.183.214: killall -s INT dpdk-testpmd 
10/03/2021 15:19:56             dut.10.240.183.214: dpdk-testpmd: no process found
10/03/2021 15:20:07             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
10/03/2021 15:20:07             dut.10.240.183.214: 2048
10/03/2021 15:20:32                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:20:32                         tester: 
10/03/2021 15:20:46                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:20:46                         tester: 
10/03/2021 15:21:00                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:21:00                         tester: 
10/03/2021 15:21:14                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:21:14                         tester: 
10/03/2021 15:21:28                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:21:28                         tester: 
10/03/2021 15:21:42                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:21:42                         tester: 
10/03/2021 15:21:44             TestVhostPmdXstats: Test Case test_vhost_xstats_no_mergeable Result PASSED:
10/03/2021 15:21:44             dut.10.240.183.214: killall -s INT dpdk-testpmd 
10/03/2021 15:21:44             dut.10.240.183.214: dpdk-testpmd: no process found
10/03/2021 15:21:44             TestVhostPmdXstats: Test Case test_vhost_xstats_vector_rx Begin
10/03/2021 15:21:44             dut.10.240.183.214:  
10/03/2021 15:21:44                         tester: 
10/03/2021 15:21:44             dut.10.240.183.214: rm -rf ./vhost-net*
10/03/2021 15:21:44             dut.10.240.183.214: 
10/03/2021 15:21:44             dut.10.240.183.214: killall -s INT dpdk-testpmd 
10/03/2021 15:21:44             dut.10.240.183.214: dpdk-testpmd: no process found
10/03/2021 15:21:55             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
10/03/2021 15:21:55             dut.10.240.183.214: 2048
10/03/2021 15:22:20                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:22:20                         tester: 
10/03/2021 15:22:34                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:22:34                         tester: 
10/03/2021 15:22:48                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:22:48                         tester: 
10/03/2021 15:23:02                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:23:02                         tester: 
10/03/2021 15:23:16                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:23:16                         tester: 
10/03/2021 15:23:30                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:23:30                         tester: 
10/03/2021 15:23:32             TestVhostPmdXstats: Test Case test_vhost_xstats_vector_rx Result PASSED:
10/03/2021 15:23:32             dut.10.240.183.214: killall -s INT dpdk-testpmd 
10/03/2021 15:23:32             dut.10.240.183.214: dpdk-testpmd: no process found
10/03/2021 15:23:32             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_inorder_mergeable Begin
10/03/2021 15:23:32             dut.10.240.183.214:  
10/03/2021 15:23:32                         tester: 
10/03/2021 15:23:32             dut.10.240.183.214: rm -rf ./vhost-net*
10/03/2021 15:23:32             dut.10.240.183.214: 
10/03/2021 15:23:32             dut.10.240.183.214: killall -s INT dpdk-testpmd 
10/03/2021 15:23:32             dut.10.240.183.214: dpdk-testpmd: no process found
10/03/2021 15:23:43             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
10/03/2021 15:23:43             dut.10.240.183.214: 2048
10/03/2021 15:24:08                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:24:08                         tester: 
10/03/2021 15:24:22                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:24:22                         tester: 
10/03/2021 15:24:36                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:24:36                         tester: 
10/03/2021 15:24:50                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:24:50                         tester: 
10/03/2021 15:25:04                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:25:04                         tester: 
10/03/2021 15:25:19                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:25:19                         tester: 
10/03/2021 15:25:20             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_inorder_mergeable Result PASSED:
10/03/2021 15:25:20             dut.10.240.183.214: killall -s INT dpdk-testpmd 
10/03/2021 15:25:20             dut.10.240.183.214: dpdk-testpmd: no process found
10/03/2021 15:25:20             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_inorder_no_mergeable Begin
10/03/2021 15:25:21             dut.10.240.183.214:  
10/03/2021 15:25:21                         tester: 
10/03/2021 15:25:21             dut.10.240.183.214: rm -rf ./vhost-net*
10/03/2021 15:25:21             dut.10.240.183.214: 
10/03/2021 15:25:21             dut.10.240.183.214: killall -s INT dpdk-testpmd 
10/03/2021 15:25:21             dut.10.240.183.214: dpdk-testpmd: no process found
10/03/2021 15:25:32             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
10/03/2021 15:25:32             dut.10.240.183.214: 2048
10/03/2021 15:25:56                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:25:57                         tester: 
10/03/2021 15:26:11                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:26:11                         tester: 
10/03/2021 15:26:25                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:26:25                         tester: 
10/03/2021 15:26:39                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:26:39                         tester: 
10/03/2021 15:26:53                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:26:53                         tester: 
10/03/2021 15:27:07                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:27:07                         tester: 
10/03/2021 15:27:09             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_inorder_no_mergeable Result PASSED:
10/03/2021 15:27:09             dut.10.240.183.214: killall -s INT dpdk-testpmd 
10/03/2021 15:27:09             dut.10.240.183.214: dpdk-testpmd: no process found
10/03/2021 15:27:09             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_mergeable Begin
10/03/2021 15:27:09             dut.10.240.183.214:  
10/03/2021 15:27:09                         tester: 
10/03/2021 15:27:09             dut.10.240.183.214: rm -rf ./vhost-net*
10/03/2021 15:27:09             dut.10.240.183.214: 
10/03/2021 15:27:09             dut.10.240.183.214: killall -s INT dpdk-testpmd 
10/03/2021 15:27:09             dut.10.240.183.214: dpdk-testpmd: no process found
10/03/2021 15:27:20             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
10/03/2021 15:27:20             dut.10.240.183.214: 2048
10/03/2021 15:27:45                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:27:45                         tester: 
10/03/2021 15:27:59                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:27:59                         tester: 
10/03/2021 15:28:13                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:28:13                         tester: 
10/03/2021 15:28:27                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:28:27                         tester: 
10/03/2021 15:28:42                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:28:42                         tester: 
10/03/2021 15:28:56                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:28:56                         tester: 
10/03/2021 15:30:58             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_mergeable Result PASSED:
10/03/2021 15:30:58             dut.10.240.183.214: killall -s INT dpdk-testpmd 
10/03/2021 15:30:58             dut.10.240.183.214: dpdk-testpmd: no process found
10/03/2021 15:30:58             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_no_mergeable Begin
10/03/2021 15:30:58             dut.10.240.183.214:  
10/03/2021 15:30:58                         tester: 
10/03/2021 15:30:58             dut.10.240.183.214: rm -rf ./vhost-net*
10/03/2021 15:30:58             dut.10.240.183.214: 
10/03/2021 15:30:58             dut.10.240.183.214: killall -s INT dpdk-testpmd 
10/03/2021 15:30:58             dut.10.240.183.214: dpdk-testpmd: no process found
10/03/2021 15:31:09             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
10/03/2021 15:31:09             dut.10.240.183.214: 2048
10/03/2021 15:31:34                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:31:34                         tester: 
10/03/2021 15:31:48                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:31:48                         tester: 
10/03/2021 15:32:02                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:32:02                         tester: 
10/03/2021 15:32:16                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:32:16                         tester: 
10/03/2021 15:32:30                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:32:30                         tester: 
10/03/2021 15:32:44                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:32:44                         tester: 
10/03/2021 15:32:46             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_no_mergeable Result PASSED:
10/03/2021 15:32:46             dut.10.240.183.214: killall -s INT dpdk-testpmd 
10/03/2021 15:32:46             dut.10.240.183.214: dpdk-testpmd: no process found
10/03/2021 15:32:46             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_vector Begin
10/03/2021 15:32:46             dut.10.240.183.214:  
10/03/2021 15:32:46                         tester: 
10/03/2021 15:32:46             dut.10.240.183.214: rm -rf ./vhost-net*
10/03/2021 15:32:46             dut.10.240.183.214: 
10/03/2021 15:32:46             dut.10.240.183.214: killall -s INT dpdk-testpmd 
10/03/2021 15:32:46             dut.10.240.183.214: dpdk-testpmd: no process found
10/03/2021 15:32:57             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
10/03/2021 15:32:57             dut.10.240.183.214: 2048
10/03/2021 15:33:22                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:33:22                         tester: 
10/03/2021 15:33:36                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:33:36                         tester: 
10/03/2021 15:33:50                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:33:50                         tester: 
10/03/2021 15:34:04                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:34:04                         tester: 
10/03/2021 15:34:18                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:34:18                         tester: 
10/03/2021 15:34:32                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:34:32                         tester: 
10/03/2021 15:36:34             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_vector Result PASSED:
10/03/2021 15:36:34             dut.10.240.183.214: killall -s INT dpdk-testpmd 
10/03/2021 15:36:34             dut.10.240.183.214: dpdk-testpmd: no process found
10/03/2021 15:36:34             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_vector_ringsize_not_powerof_2 Begin
10/03/2021 15:36:34             dut.10.240.183.214:  
10/03/2021 15:36:35                         tester: 
10/03/2021 15:36:35             dut.10.240.183.214: rm -rf ./vhost-net*
10/03/2021 15:36:35             dut.10.240.183.214: 
10/03/2021 15:36:35             dut.10.240.183.214: killall -s INT dpdk-testpmd 
10/03/2021 15:36:35             dut.10.240.183.214: dpdk-testpmd: no process found
10/03/2021 15:36:46             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
10/03/2021 15:36:46             dut.10.240.183.214: 2048
10/03/2021 15:37:10                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:37:10                         tester: 
10/03/2021 15:37:24                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:37:25                         tester: 
10/03/2021 15:37:39                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:37:39                         tester: 
10/03/2021 15:37:53                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:37:53                         tester: 
10/03/2021 15:38:07                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:38:07                         tester: 
10/03/2021 15:38:22                         tester: ifconfig ens786f0 mtu 1500
10/03/2021 15:38:22                         tester: 
10/03/2021 15:40:24             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_vector_ringsize_not_powerof_2 Result PASSED:
10/03/2021 15:40:24             dut.10.240.183.214: killall -s INT dpdk-testpmd 
10/03/2021 15:40:24             dut.10.240.183.214: dpdk-testpmd: no process found
10/03/2021 15:40:24                            dts: 
TEST SUITE ENDED: TestVhostPmdXstats

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

* Re: [dts] [PATCH V1] tests/vhost_pmd_xstats: add allow pci param to support tester and dut in same server and optimize code
  2021-03-10  7:55 [dts] [PATCH V1] tests/vhost_pmd_xstats: add allow pci param to support tester and dut in same server and optimize code Ling Wei
  2021-03-10  7:58 ` Ling, WeiX
@ 2021-03-15  7:00 ` Tu, Lijuan
  2021-03-15  7:54 ` Tu, Lijuan
  2 siblings, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2021-03-15  7:00 UTC (permalink / raw)
  To: Ling, WeiX, dts; +Cc: Ling, WeiX

> 1.Add -a option to support tester and dut in same server.
> 2.Use pmd.start_testpmd() to replace session.send_expect()
>   to start testpmd.
> 3.Move create dut ssh session from set_up to set_up_all
>   to reduce the number of creation.
> 4.Add close dut session in tear_down_all to close session
>   when suite execute over.
> 
> Signed-off-by: Ling Wei <weix.ling@intel.com>

Do you have any more patches like this, could you please submit them in a series, thanks.

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

* Re: [dts] [PATCH V1] tests/vhost_pmd_xstats: add allow pci param to support tester and dut in same server and optimize code
  2021-03-10  7:55 [dts] [PATCH V1] tests/vhost_pmd_xstats: add allow pci param to support tester and dut in same server and optimize code Ling Wei
  2021-03-10  7:58 ` Ling, WeiX
  2021-03-15  7:00 ` Tu, Lijuan
@ 2021-03-15  7:54 ` Tu, Lijuan
  2 siblings, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2021-03-15  7:54 UTC (permalink / raw)
  To: Ling, WeiX, dts; +Cc: Ling, WeiX

> 1.Add -a option to support tester and dut in same server.
> 2.Use pmd.start_testpmd() to replace session.send_expect()
>   to start testpmd.
> 3.Move create dut ssh session from set_up to set_up_all
>   to reduce the number of creation.
> 4.Add close dut session in tear_down_all to close session
>   when suite execute over.

Applied

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

end of thread, other threads:[~2021-03-15  7:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10  7:55 [dts] [PATCH V1] tests/vhost_pmd_xstats: add allow pci param to support tester and dut in same server and optimize code Ling Wei
2021-03-10  7:58 ` Ling, WeiX
2021-03-15  7:00 ` Tu, Lijuan
2021-03-15  7:54 ` 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).