test suite reviews and discussions
 help / color / Atom feed
* [dts] [dst] [PATCH V1] tests/TestSuite_virtio_user_for_container_networking: support meson build
@ 2020-09-18  8:57 Jiang, YuX
  2020-09-18  9:02 ` Jiang, YuX
  2020-09-28  8:47 ` Tu, Lijuan
  0 siblings, 2 replies; 4+ messages in thread
From: Jiang, YuX @ 2020-09-18  8:57 UTC (permalink / raw)
  To: dts; +Cc: JiangYu

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

Adapt meson build and kill testpmd_name

Signed-off-by: JiangYu <yux.jiang@intel.com>
---
 tests/TestSuite_virtio_user_for_container_networking.py | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/tests/TestSuite_virtio_user_for_container_networking.py b/tests/TestSuite_virtio_user_for_container_networking.py
index 36a7838..0fca14a 100644
--- a/tests/TestSuite_virtio_user_for_container_networking.py
+++ b/tests/TestSuite_virtio_user_for_container_networking.py
@@ -72,13 +72,15 @@ class TestVirtioUserForContainer(TestCase):
         # create an instance to set stream field setting
         self.pktgen_helper = PacketGeneratorHelper()
         self.number_of_ports = 1
+        self.app_testpmd_path = self.dut.apps_name['test-pmd']
+        self.testpmd_name = self.app_testpmd_path.split("/")[-1]
 
     def set_up(self):
         """
         Run before each test case.
         """
         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')
         # Prepare the result table
@@ -158,7 +160,7 @@ class TestVirtioUserForContainer(TestCase):
         eal_param = self.dut.create_eal_parameters(cores=self.core_list_vhost_user, prefix='vhost', vdevs=["net_vhost0,iface=vhost-net,queues=%d,client=0" % self.queue_number],ports=[self.pci_info])
         if self.check_2M_env:
             eal_param += " --single-file-segments"
-        command_line_client = self.dut.target + '/app/testpmd ' + eal_param + ' -- -i --nb-cores=%d' % self.nb_cores
+        command_line_client = self.app_testpmd_path + eal_param + ' -- -i --nb-cores=%d' % self.nb_cores
         self.vhost_user.send_expect(command_line_client, 'testpmd> ', 30)
         self.vhost_user.send_expect('start', 'testpmd> ', 30)
 
@@ -169,20 +171,20 @@ class TestVirtioUserForContainer(TestCase):
         if self.check_2M_env:
             command_line_user = 'docker run -i -t --privileged -v %s/vhost-net:/tmp/vhost-net ' + \
                             '-v /mnt/huge:/dev/hugepages ' + \
-                            '-v %s:%s %s .%s/%s/app/testpmd -c %s -n %d ' + \
+                            '-v %s:%s %s .%s/%s -c %s -n %d ' + \
                             '-m 1024 --no-pci --file-prefix=container --single-file-segments ' + \
                             '--vdev=virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net,queues=%d ' + \
                             '-- -i --rxq=%d --txq=%d --nb-cores=%d'
         else:
             command_line_user = 'docker run -i -t --privileged -v %s/vhost-net:/tmp/vhost-net ' + \
                             '-v /mnt/huge:/dev/hugepages ' + \
-                            '-v %s:%s %s .%s/%s/app/testpmd -c %s -n %d ' + \
+                            '-v %s:%s %s .%s/%s -c %s -n %d ' + \
                             '-m 1024 --no-pci --file-prefix=container ' + \
                             '--vdev=virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net,queues=%d ' + \
                             '-- -i --rxq=%d --txq=%d --nb-cores=%d'
         command_line_user = command_line_user % (self.container_base_dir,
             self.container_base_dir, self.container_base_dir, self.docker_image,
-            self.container_base_dir, self.dut.target, self.core_mask_virtio_user,
+            self.container_base_dir, self.app_testpmd_path, self.core_mask_virtio_user,
             self.mem_channels, self.queue_number, self.queue_number,
             self.queue_number, self.nb_cores)
         self.virtio_user.send_expect(command_line_user, 'testpmd> ', 120)
@@ -227,7 +229,7 @@ class TestVirtioUserForContainer(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):
         """
-- 
2.7.4


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

* Re: [dts] [dst] [PATCH V1] tests/TestSuite_virtio_user_for_container_networking: support meson build
  2020-09-18  8:57 [dts] [dst] [PATCH V1] tests/TestSuite_virtio_user_for_container_networking: support meson build Jiang, YuX
@ 2020-09-18  9:02 ` Jiang, YuX
  2020-09-28  1:18   ` Ma, LihongX
  2020-09-28  8:47 ` Tu, Lijuan
  1 sibling, 1 reply; 4+ messages in thread
From: Jiang, YuX @ 2020-09-18  9:02 UTC (permalink / raw)
  To: dts; +Cc: Jiang, YuX

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

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

    Best Regards
    Jiang yu


> -----Original Message-----
> From: Jiang, YuX
> Sent: Friday, September 18, 2020 4:58 PM
> To: dts@dpdk.org
> Cc: Jiang, YuX <yux.jiang@intel.com>
> Subject: [dst] [PATCH V1]
> tests/TestSuite_virtio_user_for_container_networking: support meson build


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

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

* Re: [dts] [dst] [PATCH V1] tests/TestSuite_virtio_user_for_container_networking: support meson build
  2020-09-18  9:02 ` Jiang, YuX
@ 2020-09-28  1:18   ` Ma, LihongX
  0 siblings, 0 replies; 4+ messages in thread
From: Ma, LihongX @ 2020-09-28  1:18 UTC (permalink / raw)
  To: Jiang, YuX, dts; +Cc: Jiang, YuX

Acked-by: Lihong Ma<lihongx.ma@intel.com>

Regards,
Ma,lihong

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Jiang, YuX
> Sent: Friday, September 18, 2020 5:02 PM
> To: dts@dpdk.org
> Cc: Jiang, YuX <yux.jiang@intel.com>
> Subject: Re: [dts] [dst] [PATCH V1]
> tests/TestSuite_virtio_user_for_container_networking: support meson build
> 


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

* Re: [dts] [dst] [PATCH V1] tests/TestSuite_virtio_user_for_container_networking: support meson build
  2020-09-18  8:57 [dts] [dst] [PATCH V1] tests/TestSuite_virtio_user_for_container_networking: support meson build Jiang, YuX
  2020-09-18  9:02 ` Jiang, YuX
@ 2020-09-28  8:47 ` Tu, Lijuan
  1 sibling, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2020-09-28  8:47 UTC (permalink / raw)
  To: Jiang, YuX, dts; +Cc: Jiang, YuX

> Adapt meson build and kill testpmd_name
> 
> Signed-off-by: JiangYu <yux.jiang@intel.com>

Applied

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

end of thread, back to index

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-18  8:57 [dts] [dst] [PATCH V1] tests/TestSuite_virtio_user_for_container_networking: support meson build Jiang, YuX
2020-09-18  9:02 ` Jiang, YuX
2020-09-28  1:18   ` Ma, LihongX
2020-09-28  8:47 ` Tu, Lijuan

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox