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 2765DA04AA; Tue, 8 Sep 2020 09:30:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 201E81C129; Tue, 8 Sep 2020 09:30:10 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 4CA261C11C for ; Tue, 8 Sep 2020 09:30:08 +0200 (CEST) IronPort-SDR: gIMVItCRZmYx+Ril+w8m9QLRcDv6zKOtVC/XWl2zzQPFHqELFJY9XHxDwKlSrPjyz6lPDoNB48 QeheKo+EYjTA== X-IronPort-AV: E=McAfee;i="6000,8403,9737"; a="219646657" X-IronPort-AV: E=Sophos;i="5.76,404,1592895600"; d="scan'208";a="219646657" 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:08 -0700 IronPort-SDR: lN1wLRUwtIVkGZJZAV27A5uXYVqMCPmqrphCdXi/xZ0BlYF/8M9MjqufRnMRexYjCDVRXnxiO4 y4wKI185hbCg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,404,1592895600"; d="scan'208";a="377432886" Received: from unknown (HELO localhost.localdomain) ([10.240.183.52]) by orsmga001.jf.intel.com with ESMTP; 08 Sep 2020 00:30:06 -0700 From: "Zhou, Jun" To: dts@dpdk.org Cc: Zhou jun Date: Tue, 8 Sep 2020 07:18:20 +0000 Message-Id: <20200908071825.118583-34-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 33/38] tests/TestSuite_virtio_user_as_exceptional_path.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_virtio_user_as_exceptional_path.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_virtio_user_as_exceptional_path.py b/tests/TestSuite_virtio_user_as_exceptional_path.py index 262db75..3c04f55 100644 --- a/tests/TestSuite_virtio_user_as_exceptional_path.py +++ b/tests/TestSuite_virtio_user_as_exceptional_path.py @@ -69,6 +69,7 @@ class TestVirtioUserAsExceptionalPath(TestCase): self.pktgen_helper = PacketGeneratorHelper() self.peer_pci_setup = False self.prepare_dpdk() + self.app_testpmd_path = self.dut.apps_name['test-pmd'] def set_up(self): # @@ -112,7 +113,7 @@ class TestVirtioUserAsExceptionalPath(TestCase): cores_list = self.dut.get_core_list(cores_config, socket=self.socket) self.verify(len(cores_list) >= cores_number, "Failed to get cores list") core_mask = cores_list[0:2] - testcmd = self.target + "/app/testpmd " + testcmd = self.app_testpmd_path + " " vdev = "--vdev=virtio_user0,mac=%s,path=/dev/vhost-net," % self.virtio_mac eal_params = self.dut.create_eal_parameters(cores=core_mask, ports=[self.pci0]) para = " queue_size=1024,queues=%s -- -i --rxd=1024 --txd=1024 %s" % (self.queue, comment) @@ -127,7 +128,7 @@ class TestVirtioUserAsExceptionalPath(TestCase): self.dut.send_expect("taskset -pc %s %s" % (cores_list[-2], vhost_pid_list[2]), "# ") def launch_testpmd_exception_path(self): - testcmd = self.target + "/app/testpmd " + testcmd = self.app_testpmd_path + " " vdev = "--vdev=virtio_user0,mac=%s,path=/dev/vhost-net,queue_size=1024" % self.virtio_mac eal_params = self.dut.create_eal_parameters(cores=self.cores, ports=[self.pci]) para = " -- -i --rxd=1024 --txd=1024" -- 1.8.3.1