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 067A6A04B1; Tue, 8 Sep 2020 09:30:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EE9E41C114; Tue, 8 Sep 2020 09:30:02 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id A27791BE85 for ; Tue, 8 Sep 2020 09:30:01 +0200 (CEST) IronPort-SDR: YBvJmCBxb0iwXOZCEog3gH19Mh+nOwK7Ucb9cfXFZEZKo/i+v+lI4FN9eDwKJkKX6+k7AbOslS ZD21erNcL5ug== X-IronPort-AV: E=McAfee;i="6000,8403,9737"; a="219646624" X-IronPort-AV: E=Sophos;i="5.76,404,1592895600"; d="scan'208";a="219646624" 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:01 -0700 IronPort-SDR: 1RAb+z/GZgalKRmJmJYZ1V4N7SYwFyhh1y4syGZ+ZlQnoRGGoDz2bpSIHDLd9PG2WwZKleM0mD SBT4uW0/6lgQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,404,1592895600"; d="scan'208";a="377432786" Received: from unknown (HELO localhost.localdomain) ([10.240.183.52]) by orsmga001.jf.intel.com with ESMTP; 08 Sep 2020 00:30:00 -0700 From: "Zhou, Jun" To: dts@dpdk.org Cc: Zhou jun Date: Tue, 8 Sep 2020 07:18:15 +0000 Message-Id: <20200908071825.118583-29-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 28/38] tests/TestSuite_vhost_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_user_interrupt.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_vhost_user_interrupt.py b/tests/TestSuite_vhost_user_interrupt.py index cc8fba7..487e058 100644 --- a/tests/TestSuite_vhost_user_interrupt.py +++ b/tests/TestSuite_vhost_user_interrupt.py @@ -51,6 +51,8 @@ class TestVhostUserInterrupt(TestCase): self.vmac = "00:11:22:33:44:10" self.pci_info = self.dut.ports_info[0]['pci'] self.prepare_l3fwd_power() + 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): """ @@ -92,7 +94,7 @@ class TestVhostUserInterrupt(TestCase): if self.check_2M_env: eal_params += " --single-file-segments" para = " -- -i --rxq=%d --txq=%d --rss-ip" % (self.queues, self.queues) - command_line_client = self.dut.target + "/app/testpmd " + eal_params + para + command_line_client = self.app_testpmd_path + " " + eal_params + para self.virtio_user.send_expect(command_line_client, "testpmd> ", 120) self.virtio_user.send_expect("set fwd txonly", "testpmd> ", 20) @@ -115,7 +117,7 @@ class TestVhostUserInterrupt(TestCase): info = {'core': self.core_list_l3fwd[i], 'port': 0, 'queue': i} self.verify_info.append(info) - example_cmd = "./examples/l3fwd-power/build/l3fwd-power " + example_cmd = self.app_l3fwd_power_path + " " vdev = 'net_vhost0,iface=vhost-net,queues=%d,client=1' % self.queues para = " -- -p 0x1 --parse-ptype 1 --config '%s' --interrupt-only" % config_info eal_params = self.dut.create_eal_parameters(cores=self.core_list_l3fwd, no_pci=True, ports=[self.pci_info], vdevs=[vdev]) -- 1.8.3.1