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 CE696A04AA; Tue, 8 Sep 2020 09:30:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C69681C10C; Tue, 8 Sep 2020 09:30:01 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 43F3B2BAB for ; Tue, 8 Sep 2020 09:30:00 +0200 (CEST) IronPort-SDR: CLxK67VHZFz3iF/U4TJwb/vjtoMPaWJDkaw1KsJBgh1njc896DtDg9SnIoX6S8wJE1FJVtxtsK +2suq54FASaw== X-IronPort-AV: E=McAfee;i="6000,8403,9737"; a="219646623" X-IronPort-AV: E=Sophos;i="5.76,404,1592895600"; d="scan'208";a="219646623" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Sep 2020 00:29:59 -0700 IronPort-SDR: OxjBQCqzm8+BVN/SbdpAy4dfGg5okv7lviJu2M+VOFjwPcq35/xGMAT385X/KK8ik2Rzn5l7z4 TP6LPMh5EUuA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,404,1592895600"; d="scan'208";a="377432775" Received: from unknown (HELO localhost.localdomain) ([10.240.183.52]) by orsmga001.jf.intel.com with ESMTP; 08 Sep 2020 00:29:58 -0700 From: "Zhou, Jun" To: dts@dpdk.org Cc: Zhou jun Date: Tue, 8 Sep 2020 07:18:14 +0000 Message-Id: <20200908071825.118583-28-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200908071825.118583-1-junx.w.zhou@intel.com> References: <20200908071825.118583-1-junx.w.zhou@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [dts 27/38] tests/TestSuite_vhost_pmd_xstats.py: adapt to support both meson and makefile 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: Zhou jun Signed-off-by: Zhou jun --- tests/TestSuite_vhost_pmd_xstats.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_vhost_pmd_xstats.py b/tests/TestSuite_vhost_pmd_xstats.py index 3873213..f68385f 100755 --- a/tests/TestSuite_vhost_pmd_xstats.py +++ b/tests/TestSuite_vhost_pmd_xstats.py @@ -72,6 +72,7 @@ class TestVhostPmdXstats(TestCase): self.core_list_user = self.core_list[0:3] 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'] def set_up(self): """ @@ -118,7 +119,7 @@ class TestVhostPmdXstats(TestCase): """ eal_param = self.dut.create_eal_parameters(socket=self.ports_socket, cores=self.core_list_host, prefix='vhost', vdevs=['net_vhost0,iface=vhost-net,queues=2,client=0']) - command_line_client = "./%s/app/testpmd " % self.target + eal_param + ' -- -i --nb-cores=2 --rxq=2 --txq=2 --rss-ip' + command_line_client = "./%s " % self.app_testpmd_path + eal_param + ' -- -i --nb-cores=2 --rxq=2 --txq=2 --rss-ip' self.vhost_user.send_expect(command_line_client, "testpmd> ", 120) self.vhost_user.send_expect("set fwd io", "testpmd> ", 120) self.vhost_user.send_expect("start", "testpmd> ", 120) @@ -132,7 +133,7 @@ class TestVhostPmdXstats(TestCase): 'net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,%s' % args["version"]]) if self.check_2M_env: eal_param += " --single-file-segments" - command_line_user = "./%s/app/testpmd " % self.target + eal_param + " -- -i %s --rss-ip --nb-cores=2 --rxq=2 --txq=2" % \ + command_line_user = "./%s " % self.app_testpmd_path + eal_param + " -- -i %s --rss-ip --nb-cores=2 --rxq=2 --txq=2" % \ args["path"] self.virtio_user.send_expect(command_line_user, "testpmd> ", 120) self.virtio_user.send_expect("set fwd io", "testpmd> ", 120) -- 1.8.3.1