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 501EAA04AA; Tue, 8 Sep 2020 09:30:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 472CE1BE85; Tue, 8 Sep 2020 09:30:06 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 5B5EC1C11B for ; Tue, 8 Sep 2020 09:30:04 +0200 (CEST) IronPort-SDR: BYBt2LfPANzqoarW7cHltUxVpbURmdAuBQBvSZqgNVXqiGetjarJ0ap+0N8/zNZ1+XBLXsck15 +mynAR1pT/Wg== X-IronPort-AV: E=McAfee;i="6000,8403,9737"; a="219646638" X-IronPort-AV: E=Sophos;i="5.76,404,1592895600"; d="scan'208";a="219646638" 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:30:04 -0700 IronPort-SDR: Z9sTpm6sdgGocdfDb+66CWwS4aTvOr3+3S6J6xO/2DaOAn+D1FisM0VO/mFjt2WgNVtaZMJ8ov FkXYxEbAiZ/w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,404,1592895600"; d="scan'208";a="377432843" Received: from unknown (HELO localhost.localdomain) ([10.240.183.52]) by orsmga001.jf.intel.com with ESMTP; 08 Sep 2020 00:30:02 -0700 From: "Zhou, Jun" To: dts@dpdk.org Cc: Zhou jun Date: Tue, 8 Sep 2020 07:18:17 +0000 Message-Id: <20200908071825.118583-31-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 30/38] tests/TestSuite_vhost_virtio_user_interrupt.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_virtio_user_interrupt.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_vhost_virtio_user_interrupt.py b/tests/TestSuite_vhost_virtio_user_interrupt.py index e882c3a..118fb8e 100644 --- a/tests/TestSuite_vhost_virtio_user_interrupt.py +++ b/tests/TestSuite_vhost_virtio_user_interrupt.py @@ -62,6 +62,8 @@ class TestVirtioUserInterrupt(TestCase): self.prepare_l3fwd_power() self.tx_port = self.tester.get_local_port(self.dut_ports[0]) self.tx_interface = self.tester.get_interface(self.tx_port) + self.app_l3fwd_power_path = self.dut.apps_name['l3fwd-power'] + self.app_testpmd_path = self.dut.apps_name['test-pmd'] def set_up(self): """ @@ -96,7 +98,7 @@ class TestVirtioUserInterrupt(TestCase): def launch_l3fwd(self, path, packed=False): self.core_interrupt = self.core_list_l3fwd[0] - example_para = "./examples/l3fwd-power/build/l3fwd-power " + example_para = "./%s " % self.app_l3fwd_power_path vdev = "virtio_user0,path=%s,cq=1" % path if not packed else "virtio_user0,path=%s,cq=1,packed_vq=1" % path eal_params = self.dut.create_eal_parameters(cores=self.core_list_l3fwd, prefix='l3fwd-pwd', no_pci=True, ports=[self.pci_info], vdevs=[vdev]) if self.check_2M_env: @@ -116,7 +118,7 @@ class TestVirtioUserInterrupt(TestCase): """ start testpmd on vhost side """ - testcmd = self.dut.target + "/app/testpmd " + testcmd = self.app_testpmd_path + " " vdev = ["net_vhost0,iface=vhost-net,queues=1,client=0"] para = " -- -i --rxq=1 --txq=1" if len(pci) == 0: @@ -133,7 +135,7 @@ class TestVirtioUserInterrupt(TestCase): """ start testpmd on virtio side """ - testcmd = self.dut.target + "/app/testpmd " + testcmd = self.app_testpmd_path + " " vdev = "net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net" if not packed else "net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,packed_vq=1" eal_params = self.dut.create_eal_parameters(cores=self.core_list_l3fwd, prefix='virtio', no_pci=True, vdevs=[vdev]) para = " -- -i --txd=512 --rxd=128 --tx-offloads=0x00" -- 1.8.3.1