From: JiangYuX <yux.jiang@intel.com>
To: dts@dpdk.org
Cc: JiangYu <yux.jiang@intel.com>
Subject: [dts] [PATCH V1] tests/vhost_user_live_migration: Adapt meson build
Date: Thu, 12 Nov 2020 14:19:25 +0000 [thread overview]
Message-ID: <20201112141925.1932346-1-yux.jiang@intel.com> (raw)
From: JiangYu <yux.jiang@intel.com>
Config app_path to adapt meson build
Signed-off-by: JiangYu <yux.jiang@intel.com>
---
tests/TestSuite_vhost_user_live_migration.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_vhost_user_live_migration.py b/tests/TestSuite_vhost_user_live_migration.py
index 351b9e6..915fa59 100644
--- a/tests/TestSuite_vhost_user_live_migration.py
+++ b/tests/TestSuite_vhost_user_live_migration.py
@@ -84,6 +84,8 @@ class TestVhostUserLiveMigration(TestCase):
backup_socket_num = len(set([int(core['socket']) for core in self.backup_dut.cores]))
self.host_socket_mem = ','.join(['1024']*host_socket_num)
self.backup_socket_mem = ','.join(['1024']*backup_socket_num)
+ self.testpmd_path=self.dut.apps_name['test-pmd']
+ self.testpmd_name = self.testpmd_path.split("/")[-1]
def set_up(self):
self.host_dut.send_expect('rm ./vhost-net*', '# ', 30)
@@ -148,7 +150,7 @@ class TestVhostUserLiveMigration(TestCase):
zero_copy_str = ''
if zero_copy is True:
zero_copy_str = ',dequeue-zero-copy=1'
- testcmd = self.dut.target + "/app/testpmd "
+ testcmd = self.testpmd_path + " "
vdev = ['eth_vhost0,iface=%s/vhost-net,queues=%d%s' % (self.base_dir, self.queue_number, zero_copy_str)]
para = " -- -i --nb-cores=%d --rxq=%d --txq=%d" % (self.queue_number, self.queue_number, self.queue_number)
eal_params_first = self.dut.create_eal_parameters(cores=self.core_list0, prefix='vhost', ports=[self.host_pci_info], vdevs=vdev)
@@ -280,7 +282,7 @@ class TestVhostUserLiveMigration(TestCase):
vm_dut.send_expect('export TERM=screen', '# ')
vm_dut.send_expect('screen -S %s' % self.screen_name, '# ', 120)
- vm_testpmd = self.target + '/app/testpmd -c 0x3 -n 4 -- -i'
+ vm_testpmd = self.testpmd_path + ' -c 0x3 -n 4 -- -i'
vm_dut.send_expect(vm_testpmd, 'testpmd> ', 120)
vm_dut.send_expect('set fwd rxonly', 'testpmd> ', 30)
vm_dut.send_expect('set promisc all off', 'testpmd> ', 30)
--
2.7.4
next reply other threads:[~2020-11-12 6:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-12 14:19 JiangYuX [this message]
2020-11-12 6:22 ` Jiang, YuX
2020-11-18 3:23 ` 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=20201112141925.1932346-1-yux.jiang@intel.com \
--to=yux.jiang@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).