test suite reviews and discussions
 help / color / mirror / Atom feed
* Re: [dts] [PATCH V1] tests/vhost_pmd_xstats: support meson build using apps_name
  2020-09-16 11:35 [dts] [PATCH V1] tests/vhost_pmd_xstats: support meson build using apps_name JiangYuX
@ 2020-09-16 11:34 ` Jiang, YuX
  2020-09-23  7:56 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Jiang, YuX @ 2020-09-16 11:34 UTC (permalink / raw)
  To: dts; +Cc: Jiang, YuX

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

Tested-by: Jiang, YuX <yux.jiang@intel.com>

    Best Regards
    Jiang yu

> -----Original Message-----
> From: Jiang, YuX
> Sent: Wednesday, September 16, 2020 7:35 PM
> To: dts@dpdk.org
> Cc: Jiang, YuX <yux.jiang@intel.com>
> Subject: [dts] [PATCH V1] tests/vhost_pmd_xstats: support meson build
> using apps_name
> 
> From: JiangYu <yux.jiang@intel.com>
> 
> update killall apps_name
> 
> Signed-off-by: JiangYu <yux.jiang@intel.com>
> ---
>  tests/TestSuite_vhost_pmd_xstats.py | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/TestSuite_vhost_pmd_xstats.py
> b/tests/TestSuite_vhost_pmd_xstats.py
> index f68385f..a3b0a2f 100755
> --- a/tests/TestSuite_vhost_pmd_xstats.py
> +++ b/tests/TestSuite_vhost_pmd_xstats.py
> @@ -73,6 +73,7 @@ class TestVhostPmdXstats(TestCase):
>          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]
> 
>      def set_up(self):
>          """
> @@ -80,7 +81,7 @@ class TestVhostPmdXstats(TestCase):
>          Launch vhost sample using default params
>          """
>          self.dut.send_expect("rm -rf ./vhost-net*", "#")
> -        self.dut.send_expect("killall -s INT testpmd", "#")
> +        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")
> 
> @@ -345,10 +346,10 @@ class TestVhostPmdXstats(TestCase):
>          """
>          Run after each test case.
>          """
> -        self.dut.send_expect("killall -s INT testpmd", "#")
> +        self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#")
> 
>      def tear_down_all(self):
>          """
>          Run after each test suite.
>          """
> -        pass
> \ No newline at end of file
> +        pass
> --
> 2.7.4


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

16/09/2020 16:20:29                            dts: 
TEST SUITE : TestVhostPmdXstats
16/09/2020 16:20:29                            dts: NIC :        fortville_spirit
16/09/2020 16:20:29             dut.10.240.183.214: 
16/09/2020 16:20:29                         tester: 
16/09/2020 16:20:29             dut.10.240.183.214: ls
16/09/2020 16:20:29             dut.10.240.183.214: aa  ABI_VERSION  app  buildtoo  config  devtoo  doc  dpdk.log  drivers  examples  kernel  lib  license  MAINTAINERS  Makefile  meson.build	meson_options.txt  README  showversion	usertoo  VERSION  x86_64-native-linuxapp-gcc
16/09/2020 16:20:29             dut.10.240.183.214: usertools/dpdk-devbind.py --force -u 
16/09/2020 16:20:30             dut.10.240.183.214: WARNING: Python 2 is deprecated for use in DPDK, and will not work in future releases.
Please use Python 3 instead
Error: No devices specified.

Usage:
------

     dpdk-devbind.py [options] DEVICE1 DEVICE2 ....

where DEVICE1, DEVICE2 etc, are specified via PCI "domain:bus:slot.func" syntax
or "bus:slot.func" syntax. For devices bound to Linux kernel drivers, they may
also be referred to by Linux interface name e.g. eth0, eth1, em0, em1, etc.
If devices are specified using PCI <domain:>bus:device:func format, then
shell wildcards and ranges may be used, e.g. 80:04.*, 80:04.[0-3]

Options:
    --help, --usage:
        Display usage information and quit

    -s, --status:
        Print the current status of all known network, crypto, event
        and mempool devices.
        For each device, it displays the PCI domain, bus, slot and function,
        along with a text description of the device. Depending upon whether the
        device is being used by a kernel driver, the igb_uio driver, or no
        driver, other relevant information will be displayed:
        * the Linux interface name e.g. if=eth0
        * the driver being used e.g. drv=igb_uio
        * any suitable drivers not currently using that device
            e.g. unused=igb_uio
        NOTE: if this flag is passed along with a bind/unbind option, the
        status display will always occur after the other operations have taken
        place.

    --status-dev:
        Print the status of given device group. Supported device groups are:
        "net", "baseband", "crypto", "event", "mempool" and "compress"

    -b driver, --bind=driver:
        Select the driver to use or "none" to unbind the device

    -u, --unbind:
        Unbind a device (Equivalent to "-b none")

    --force:
        By default, network devices which are used by Linux - as indicated by
        having routes in the routing table - cannot be modified. Using the
        --force flag overrides this behavior, allowing active links to be
        forcibly unbound.
        WARNING: This can lead to loss of network connection and should be used
        with caution.

Examples:
---------

To display current device status:
        dpdk-devbind.py --status

To display current network device status:
        dpdk-devbind.py --status-dev net

To bind eth1 from the current driver and move to use igb_uio
        dpdk-devbind.py --bind=igb_uio eth1

To unbind 0000:01:00.0 from using any driver
        dpdk-devbind.py -u 0000:01:00.0

To bind 0000:02:00.0 and 0000:02:00.1 to the ixgbe kernel driver
        dpdk-devbind.py -b ixgbe 02:00.0 02:00.1

To bind all functions on device 0000:02:00 to ixgbe kernel driver
        dpdk-devbind.py -b ixgbe 02:00.*

    
16/09/2020 16:20:30             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
16/09/2020 16:20:30             dut.10.240.183.214: 2048
16/09/2020 16:20:30             TestVhostPmdXstats: Test Case test_vhost_xstats_inorder_mergeable Begin
16/09/2020 16:20:30             dut.10.240.183.214: 
16/09/2020 16:20:30                         tester: 
16/09/2020 16:20:30             dut.10.240.183.214: rm -rf ./vhost-net*
16/09/2020 16:20:30             dut.10.240.183.214: 
16/09/2020 16:20:30             dut.10.240.183.214: killall -s INT dpdk-testpmd 
16/09/2020 16:20:30             dut.10.240.183.214: dpdk-testpmd: no process found
16/09/2020 16:20:35             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
16/09/2020 16:20:35             dut.10.240.183.214: 2048
16/09/2020 16:20:48                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:20:48                         tester: 
16/09/2020 16:21:01                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:21:01                         tester: 
16/09/2020 16:21:14                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:21:14                         tester: 
16/09/2020 16:21:27                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:21:27                         tester: 
16/09/2020 16:21:41                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:21:41                         tester: 
16/09/2020 16:21:54                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:21:54                         tester: 
16/09/2020 16:21:55             TestVhostPmdXstats: Test Case test_vhost_xstats_inorder_mergeable Result PASSED:
16/09/2020 16:21:55             dut.10.240.183.214: killall -s INT dpdk-testpmd 
16/09/2020 16:21:56             dut.10.240.183.214: dpdk-testpmd: no process found
16/09/2020 16:21:56             TestVhostPmdXstats: Test Case test_vhost_xstats_inorder_no_mergeable Begin
16/09/2020 16:21:56             dut.10.240.183.214:  
16/09/2020 16:21:56                         tester: 
16/09/2020 16:21:56             dut.10.240.183.214: rm -rf ./vhost-net*
16/09/2020 16:21:56             dut.10.240.183.214: 
16/09/2020 16:21:56             dut.10.240.183.214: killall -s INT dpdk-testpmd 
16/09/2020 16:21:56             dut.10.240.183.214: dpdk-testpmd: no process found
16/09/2020 16:22:00             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
16/09/2020 16:22:01             dut.10.240.183.214: 2048
16/09/2020 16:22:14                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:22:14                         tester: 
16/09/2020 16:22:27                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:22:27                         tester: 
16/09/2020 16:22:40                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:22:40                         tester: 
16/09/2020 16:22:53                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:22:53                         tester: 
16/09/2020 16:23:06                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:23:07                         tester: 
16/09/2020 16:23:20                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:23:20                         tester: 
16/09/2020 16:23:21             TestVhostPmdXstats: Test Case test_vhost_xstats_inorder_no_mergeable Result PASSED:
16/09/2020 16:23:21             dut.10.240.183.214: killall -s INT dpdk-testpmd 
16/09/2020 16:23:21             dut.10.240.183.214: dpdk-testpmd: no process found
16/09/2020 16:23:21             TestVhostPmdXstats: Test Case test_vhost_xstats_mergeable Begin
16/09/2020 16:23:22             dut.10.240.183.214:  
16/09/2020 16:23:22                         tester: 
16/09/2020 16:23:22             dut.10.240.183.214: rm -rf ./vhost-net*
16/09/2020 16:23:22             dut.10.240.183.214: 
16/09/2020 16:23:22             dut.10.240.183.214: killall -s INT dpdk-testpmd 
16/09/2020 16:23:22             dut.10.240.183.214: dpdk-testpmd: no process found
16/09/2020 16:23:26             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
16/09/2020 16:23:26             dut.10.240.183.214: 2048
16/09/2020 16:23:40                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:23:40                         tester: 
16/09/2020 16:23:53                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:23:53                         tester: 
16/09/2020 16:24:06                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:24:06                         tester: 
16/09/2020 16:24:19                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:24:19                         tester: 
16/09/2020 16:24:32                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:24:32                         tester: 
16/09/2020 16:24:46                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:24:46                         tester: 
16/09/2020 16:24:47             TestVhostPmdXstats: Test Case test_vhost_xstats_mergeable Result PASSED:
16/09/2020 16:24:47             dut.10.240.183.214: killall -s INT dpdk-testpmd 
16/09/2020 16:24:47             dut.10.240.183.214: dpdk-testpmd: no process found
16/09/2020 16:24:47             TestVhostPmdXstats: Test Case test_vhost_xstats_no_mergeable Begin
16/09/2020 16:24:47             dut.10.240.183.214:  
16/09/2020 16:24:47                         tester: 
16/09/2020 16:24:47             dut.10.240.183.214: rm -rf ./vhost-net*
16/09/2020 16:24:48             dut.10.240.183.214: 
16/09/2020 16:24:48             dut.10.240.183.214: killall -s INT dpdk-testpmd 
16/09/2020 16:24:48             dut.10.240.183.214: dpdk-testpmd: no process found
16/09/2020 16:24:52             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
16/09/2020 16:24:52             dut.10.240.183.214: 2048
16/09/2020 16:25:06                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:25:06                         tester: 
16/09/2020 16:25:19                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:25:19                         tester: 
16/09/2020 16:25:32                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:25:32                         tester: 
16/09/2020 16:25:45                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:25:45                         tester: 
16/09/2020 16:25:59                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:25:59                         tester: 
16/09/2020 16:26:12                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:26:12                         tester: 
16/09/2020 16:26:14             TestVhostPmdXstats: Test Case test_vhost_xstats_no_mergeable Result PASSED:
16/09/2020 16:26:14             dut.10.240.183.214: killall -s INT dpdk-testpmd 
16/09/2020 16:26:14             dut.10.240.183.214: dpdk-testpmd: no process found
16/09/2020 16:26:14             TestVhostPmdXstats: Test Case test_vhost_xstats_vector_rx Begin
16/09/2020 16:26:14             dut.10.240.183.214:  
16/09/2020 16:26:14                         tester: 
16/09/2020 16:26:14             dut.10.240.183.214: rm -rf ./vhost-net*
16/09/2020 16:26:14             dut.10.240.183.214: 
16/09/2020 16:26:14             dut.10.240.183.214: killall -s INT dpdk-testpmd 
16/09/2020 16:26:14             dut.10.240.183.214: dpdk-testpmd: no process found
16/09/2020 16:26:19             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
16/09/2020 16:26:19             dut.10.240.183.214: 2048
16/09/2020 16:26:33                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:26:33                         tester: 
16/09/2020 16:26:46                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:26:46                         tester: 
16/09/2020 16:26:59                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:26:59                         tester: 
16/09/2020 16:27:12                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:27:12                         tester: 
16/09/2020 16:27:26                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:27:26                         tester: 
16/09/2020 16:27:39                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:27:39                         tester: 
16/09/2020 16:27:41             TestVhostPmdXstats: Test Case test_vhost_xstats_vector_rx Result PASSED:
16/09/2020 16:27:41             dut.10.240.183.214: killall -s INT dpdk-testpmd 
16/09/2020 16:27:41             dut.10.240.183.214: dpdk-testpmd: no process found
16/09/2020 16:27:41             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_inorder_mergeable Begin
16/09/2020 16:27:41             dut.10.240.183.214:  
16/09/2020 16:27:41                         tester: 
16/09/2020 16:27:41             dut.10.240.183.214: rm -rf ./vhost-net*
16/09/2020 16:27:41             dut.10.240.183.214: 
16/09/2020 16:27:41             dut.10.240.183.214: killall -s INT dpdk-testpmd 
16/09/2020 16:27:41             dut.10.240.183.214: dpdk-testpmd: no process found
16/09/2020 16:27:46             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
16/09/2020 16:27:46             dut.10.240.183.214: 2048
16/09/2020 16:27:59                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:27:59                         tester: 
16/09/2020 16:28:13                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:28:13                         tester: 
16/09/2020 16:28:26                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:28:26                         tester: 
16/09/2020 16:28:39                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:28:39                         tester: 
16/09/2020 16:28:53                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:28:53                         tester: 
16/09/2020 16:29:06                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:29:06                         tester: 
16/09/2020 16:29:08             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_inorder_mergeable Result PASSED:
16/09/2020 16:29:08             dut.10.240.183.214: killall -s INT dpdk-testpmd 
16/09/2020 16:29:08             dut.10.240.183.214: dpdk-testpmd: no process found
16/09/2020 16:29:08             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_inorder_no_mergeable Begin
16/09/2020 16:29:08             dut.10.240.183.214:  
16/09/2020 16:29:08                         tester: 
16/09/2020 16:29:08             dut.10.240.183.214: rm -rf ./vhost-net*
16/09/2020 16:29:08             dut.10.240.183.214: 
16/09/2020 16:29:08             dut.10.240.183.214: killall -s INT dpdk-testpmd 
16/09/2020 16:29:08             dut.10.240.183.214: dpdk-testpmd: no process found
16/09/2020 16:29:13             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
16/09/2020 16:29:13             dut.10.240.183.214: 2048
16/09/2020 16:29:26                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:29:26                         tester: 
16/09/2020 16:29:40                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:29:40                         tester: 
16/09/2020 16:29:53                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:29:53                         tester: 
16/09/2020 16:30:06                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:30:06                         tester: 
16/09/2020 16:30:19                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:30:19                         tester: 
16/09/2020 16:30:33                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:30:33                         tester: 
16/09/2020 16:30:34             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_inorder_no_mergeable Result PASSED:
16/09/2020 16:30:34             dut.10.240.183.214: killall -s INT dpdk-testpmd 
16/09/2020 16:30:35             dut.10.240.183.214: dpdk-testpmd: no process found
16/09/2020 16:30:35             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_mergeable Begin
16/09/2020 16:30:35             dut.10.240.183.214:  
16/09/2020 16:30:35                         tester: 
16/09/2020 16:30:35             dut.10.240.183.214: rm -rf ./vhost-net*
16/09/2020 16:30:35             dut.10.240.183.214: 
16/09/2020 16:30:35             dut.10.240.183.214: killall -s INT dpdk-testpmd 
16/09/2020 16:30:35             dut.10.240.183.214: dpdk-testpmd: no process found
16/09/2020 16:30:39             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
16/09/2020 16:30:39             dut.10.240.183.214: 2048
16/09/2020 16:30:53                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:30:53                         tester: 
16/09/2020 16:31:06                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:31:06                         tester: 
16/09/2020 16:31:19                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:31:19                         tester: 
16/09/2020 16:31:33                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:31:33                         tester: 
16/09/2020 16:31:46                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:31:46                         tester: 
16/09/2020 16:32:00                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:32:00                         tester: 
16/09/2020 16:34:01             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_mergeable Result PASSED:
16/09/2020 16:34:01             dut.10.240.183.214: killall -s INT dpdk-testpmd 
16/09/2020 16:34:01             dut.10.240.183.214: dpdk-testpmd: no process found
16/09/2020 16:34:01             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_no_mergeable Begin
16/09/2020 16:34:01             dut.10.240.183.214:  
16/09/2020 16:34:02                         tester: 
16/09/2020 16:34:02             dut.10.240.183.214: rm -rf ./vhost-net*
16/09/2020 16:34:02             dut.10.240.183.214: 
16/09/2020 16:34:02             dut.10.240.183.214: killall -s INT dpdk-testpmd 
16/09/2020 16:34:02             dut.10.240.183.214: dpdk-testpmd: no process found
16/09/2020 16:34:06             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
16/09/2020 16:34:06             dut.10.240.183.214: 2048
16/09/2020 16:34:20                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:34:20                         tester: 
16/09/2020 16:34:33                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:34:33                         tester: 
16/09/2020 16:34:46                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:34:46                         tester: 
16/09/2020 16:34:59                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:34:59                         tester: 
16/09/2020 16:35:13                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:35:13                         tester: 
16/09/2020 16:35:26                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:35:26                         tester: 
16/09/2020 16:35:28             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_no_mergeable Result PASSED:
16/09/2020 16:35:28             dut.10.240.183.214: killall -s INT dpdk-testpmd 
16/09/2020 16:35:28             dut.10.240.183.214: dpdk-testpmd: no process found
16/09/2020 16:35:28             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_vector Begin
16/09/2020 16:35:28             dut.10.240.183.214:  
16/09/2020 16:35:28                         tester: 
16/09/2020 16:35:28             dut.10.240.183.214: rm -rf ./vhost-net*
16/09/2020 16:35:28             dut.10.240.183.214: 
16/09/2020 16:35:28             dut.10.240.183.214: killall -s INT dpdk-testpmd 
16/09/2020 16:35:28             dut.10.240.183.214: dpdk-testpmd: no process found
16/09/2020 16:35:33             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
16/09/2020 16:35:33             dut.10.240.183.214: 2048
16/09/2020 16:35:47                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:35:47                         tester: 
16/09/2020 16:36:00                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:36:00                         tester: 
16/09/2020 16:36:13                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:36:13                         tester: 
16/09/2020 16:36:26                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:36:26                         tester: 
16/09/2020 16:36:39                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:36:39                         tester: 
16/09/2020 16:36:53                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:36:53                         tester: 
16/09/2020 16:38:55             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_vector Result PASSED:
16/09/2020 16:38:55             dut.10.240.183.214: killall -s INT dpdk-testpmd 
16/09/2020 16:38:55             dut.10.240.183.214: dpdk-testpmd: no process found
16/09/2020 16:38:55             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_vector_ringsize_not_powerof_2 Begin
16/09/2020 16:38:55             dut.10.240.183.214:  
16/09/2020 16:38:55                         tester: 
16/09/2020 16:38:55             dut.10.240.183.214: rm -rf ./vhost-net*
16/09/2020 16:38:55             dut.10.240.183.214: 
16/09/2020 16:38:55             dut.10.240.183.214: killall -s INT dpdk-testpmd 
16/09/2020 16:38:55             dut.10.240.183.214: dpdk-testpmd: no process found
16/09/2020 16:39:00             dut.10.240.183.214: cat /proc/meminfo |grep Hugepagesize|awk '{print($2)}'
16/09/2020 16:39:00             dut.10.240.183.214: 2048
16/09/2020 16:39:13                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:39:13                         tester: 
16/09/2020 16:39:27                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:39:27                         tester: 
16/09/2020 16:39:40                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:39:40                         tester: 
16/09/2020 16:39:53                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:39:53                         tester: 
16/09/2020 16:40:06                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:40:06                         tester: 
16/09/2020 16:40:20                         tester: ifconfig ens786f0 mtu 1500
16/09/2020 16:40:20                         tester: 
16/09/2020 16:42:22             TestVhostPmdXstats: Test Case test_vhost_xstats_virtio11_vector_ringsize_not_powerof_2 Result PASSED:
16/09/2020 16:42:22             dut.10.240.183.214: killall -s INT dpdk-testpmd 
16/09/2020 16:42:22             dut.10.240.183.214: dpdk-testpmd: no process found
16/09/2020 16:42:22                            dts: 
TEST SUITE ENDED: TestVhostPmdXstats

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

* [dts] [PATCH V1] tests/vhost_pmd_xstats: support meson build using apps_name
@ 2020-09-16 11:35 JiangYuX
  2020-09-16 11:34 ` Jiang, YuX
  2020-09-23  7:56 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: JiangYuX @ 2020-09-16 11:35 UTC (permalink / raw)
  To: dts; +Cc: JiangYu

From: JiangYu <yux.jiang@intel.com>

update killall apps_name

Signed-off-by: JiangYu <yux.jiang@intel.com>
---
 tests/TestSuite_vhost_pmd_xstats.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_vhost_pmd_xstats.py b/tests/TestSuite_vhost_pmd_xstats.py
index f68385f..a3b0a2f 100755
--- a/tests/TestSuite_vhost_pmd_xstats.py
+++ b/tests/TestSuite_vhost_pmd_xstats.py
@@ -73,6 +73,7 @@ class TestVhostPmdXstats(TestCase):
         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]
 
     def set_up(self):
         """ 
@@ -80,7 +81,7 @@ class TestVhostPmdXstats(TestCase):
         Launch vhost sample using default params
         """
         self.dut.send_expect("rm -rf ./vhost-net*", "#")
-        self.dut.send_expect("killall -s INT testpmd", "#")
+        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")
 
@@ -345,10 +346,10 @@ class TestVhostPmdXstats(TestCase):
         """
         Run after each test case.
         """
-        self.dut.send_expect("killall -s INT testpmd", "#")
+        self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#")
 
     def tear_down_all(self):
         """
         Run after each test suite.
         """
-        pass
\ No newline at end of file
+        pass
-- 
2.7.4


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

* Re: [dts] [PATCH V1] tests/vhost_pmd_xstats: support meson build using apps_name
  2020-09-16 11:35 [dts] [PATCH V1] tests/vhost_pmd_xstats: support meson build using apps_name JiangYuX
  2020-09-16 11:34 ` Jiang, YuX
@ 2020-09-23  7:56 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-09-23  7:56 UTC (permalink / raw)
  To: Jiang, YuX, dts; +Cc: Jiang, YuX

> Subject: [dts] [PATCH V1] tests/vhost_pmd_xstats: support meson build using
> apps_name
> 
> From: JiangYu <yux.jiang@intel.com>
> 
> update killall apps_name
> 
> Signed-off-by: JiangYu <yux.jiang@intel.com>

Applied

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

end of thread, other threads:[~2020-09-23  7:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-16 11:35 [dts] [PATCH V1] tests/vhost_pmd_xstats: support meson build using apps_name JiangYuX
2020-09-16 11:34 ` Jiang, YuX
2020-09-23  7:56 ` 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).