From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 22FEDA09D3; Thu, 12 Nov 2020 07:19:56 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CF254592C; Thu, 12 Nov 2020 07:19:54 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 7967F592B for ; Thu, 12 Nov 2020 07:19:52 +0100 (CET) IronPort-SDR: DzzhSQjZQMBXDQJJ6ABBpjJY8xTCXtdgp7cmB1F7zAqOevzygyipfo+sPZTsTJQ7F3K7GyKlTc sSdTX+kRiISQ== X-IronPort-AV: E=McAfee;i="6000,8403,9802"; a="188257590" X-IronPort-AV: E=Sophos;i="5.77,471,1596524400"; d="scan'208";a="188257590" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2020 22:19:50 -0800 IronPort-SDR: +zA6AKgrGDYPxxPaHpBXD2txJZWJMBQctAdxSm9Wq+5XSCR/hm9GVTNH40bgHC9t2TAwcjeTup OQWyAO2J/X7g== X-IronPort-AV: E=Sophos;i="5.77,471,1596524400"; d="scan'208";a="531993929" Received: from unknown (HELO localhost.localdomain) ([10.240.183.77]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2020 22:19:49 -0800 From: JiangYuX To: dts@dpdk.org Cc: JiangYu Date: Thu, 12 Nov 2020 14:19:25 +0000 Message-Id: <20201112141925.1932346-1-yux.jiang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1] tests/vhost_user_live_migration: Adapt meson build X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" From: JiangYu Config app_path to adapt meson build Signed-off-by: JiangYu --- 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