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 4909BA04C5; Fri, 4 Sep 2020 10:17:47 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1419A1C12C; Fri, 4 Sep 2020 10:17:45 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 228691C128 for ; Fri, 4 Sep 2020 10:17:43 +0200 (CEST) IronPort-SDR: RQnnXC/44PNUBbEY5v2DaAaR5ssKJPXa8jq2qtY+Tm7PB4baX5EGB/QAosSZZFpfzPVevzbEqX KE7EQj+CRJXw== X-IronPort-AV: E=McAfee;i="6000,8403,9733"; a="175763319" X-IronPort-AV: E=Sophos;i="5.76,389,1592895600"; d="scan'208";a="175763319" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Sep 2020 01:17:43 -0700 IronPort-SDR: cj1TOh2v552wS7Muj0DzOVPpVe8/ae1d+/XZ6IZ6RchReIzIyARLALpBaPxkf0H9A0joYn7QWh wMu+AwarK0Ew== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,389,1592895600"; d="scan'208";a="315782768" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.182.150]) by orsmga002.jf.intel.com with ESMTP; 04 Sep 2020 01:17:42 -0700 From: xizhan4x To: dts@dpdk.org Cc: xizhan4x Date: Fri, 4 Sep 2020 16:18:36 +0800 Message-Id: <1599207525-22123-29-git-send-email-xix.zhang@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1599207525-22123-1-git-send-email-xix.zhang@intel.com> References: <1599207525-22123-1-git-send-email-xix.zhang@intel.com> Subject: [dts] [dts 29/38] tests/TestSuite_pvp_share_lib.py:support 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" Signed-off-by: xizhan4x --- tests/TestSuite_pvp_share_lib.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_pvp_share_lib.py b/tests/TestSuite_pvp_share_lib.py index 78e2243..56435db 100644 --- a/tests/TestSuite_pvp_share_lib.py +++ b/tests/TestSuite_pvp_share_lib.py @@ -68,13 +68,15 @@ class TestPVPShareLib(TestCase): self.tester.send_expect('mkdir -p %s' % self.out_path, '# ') # create an instance to set stream field setting self.pktgen_helper = PacketGeneratorHelper() + self.path=self.dut.apps_name['test-pmd'] + self.testpmd_name = self.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") self.vhost_user.send_expect("export LD_LIBRARY_PATH=%s/%s/lib:$LD_LIBRARY_PATH" % @@ -139,7 +141,7 @@ class TestPVPShareLib(TestCase): eal_param = self.dut.create_eal_parameters(socket=self.ports_socket, cores=self.core_list_vhost_user, prefix='vhost', vdevs=['net_vhost0,iface=vhost-net,queues=1']) eal_param += " -d librte_pmd_vhost.so -d librte_pmd_%s.so -d librte_mempool_ring.so --file-prefix=vhost" % driver - command_line_client = "./%s/app/testpmd " % self.target + eal_param + ' -- -i' + command_line_client = self.path + eal_param + ' -- -i' self.vhost_user.send_expect(command_line_client, "testpmd> ", 120) self.vhost_user.send_expect("set fwd mac", "testpmd> ", 120) @@ -155,7 +157,7 @@ class TestPVPShareLib(TestCase): if self.check_2M_env: eal_param += " --single-file-segments" eal_param += " -d librte_pmd_virtio.so -d librte_mempool_ring.so" - command_line_user = "./%s/app/testpmd " % self.target + eal_param + " -- -i" + command_line_user = self.path + eal_param + " -- -i" self.virtio_user.send_expect(command_line_user, "testpmd> ", 120) self.virtio_user.send_expect("start", "testpmd> ", 120) @@ -196,7 +198,7 @@ class TestPVPShareLib(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): """ -- 1.8.3.1