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 24FDDA04C5; Fri, 4 Sep 2020 10:17:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1EA701C0D8; Fri, 4 Sep 2020 10:17:28 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 4EA511C0D1 for ; Fri, 4 Sep 2020 10:17:26 +0200 (CEST) IronPort-SDR: 9HE4KUYNBjU6YfAOlFRsRT9Uz7yZDocc9NPdKfW/k1KtDeZJU9hAYWO1a8L1q4tRA9IEyW90Xw p3HXHOHCkVyQ== X-IronPort-AV: E=McAfee;i="6000,8403,9733"; a="175763288" X-IronPort-AV: E=Sophos;i="5.76,389,1592895600"; d="scan'208";a="175763288" 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:25 -0700 IronPort-SDR: 9hluqMGNYuG0H7RSRf8atIz96AzVaJiL1oIt4XM3hpKGrnfOsMWtfZPj60fc+yaIRMoPkxJ6q8 set9anLfmUJQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,389,1592895600"; d="scan'208";a="315782664" 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:24 -0700 From: xizhan4x To: dts@dpdk.org Cc: xizhan4x Date: Fri, 4 Sep 2020 16:18:23 +0800 Message-Id: <1599207525-22123-16-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 16/38] tests/TestSuite_loopback_virtio_user_server_mode.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_loopback_virtio_user_server_mode.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_loopback_virtio_user_server_mode.py b/tests/TestSuite_loopback_virtio_user_server_mode.py index d329d46..9503208 100644 --- a/tests/TestSuite_loopback_virtio_user_server_mode.py +++ b/tests/TestSuite_loopback_virtio_user_server_mode.py @@ -57,6 +57,7 @@ class TestLoopbackVirtioUserServerMode(TestCase): self.core_list = self.dut.get_core_list(self.core_config) self.core_list_user = self.core_list[0:3] self.core_list_host = self.core_list[3:6] + self.path=self.dut.apps_name['test-pmd'] def set_up(self): """ @@ -78,7 +79,7 @@ class TestLoopbackVirtioUserServerMode(TestCase): start testpmd on vhost """ eal_param = self.dut.create_eal_parameters(cores=self.core_list_host, prefix='vhost', no_pci=True, vdevs=['net_vhost0,iface=vhost-net,client=1,queues=%d' % queue_number]) - command_line_client = self.dut.target + "/app/testpmd " + eal_param + " -- -i --rxq=%d --txq=%d --nb-cores=%d %s" % (queue_number, queue_number, nb_cores, extern_params) + command_line_client = self.path + eal_param + " -- -i --rxq=%d --txq=%d --nb-cores=%d %s" % (queue_number, queue_number, nb_cores, extern_params) self.vhost.send_expect(command_line_client, "testpmd> ", 120) self.vhost.send_expect("set fwd mac", "testpmd> ", 120) @@ -94,7 +95,7 @@ class TestLoopbackVirtioUserServerMode(TestCase): eal_param = self.dut.create_eal_parameters(cores=self.core_list_user, prefix='virtio', no_pci=True, vdevs=['net_virtio_user0,mac=00:01:02:03:04:05,path=vhost-net,server=1,queues=1,%s' % args["version"]]) if self.check_2M_env: eal_param += " --single-file-segments" - command_line_user = self.dut.target + "/app/testpmd " + eal_param + " -- -i --rxq=1 --txq=1 --no-numa" + command_line_user = self.path + eal_param + " -- -i --rxq=1 --txq=1 --no-numa" self.virtio_user.send_expect(command_line_user, "testpmd> ", 120) self.virtio_user.send_expect("set fwd mac", "testpmd> ", 120) @@ -111,7 +112,7 @@ class TestLoopbackVirtioUserServerMode(TestCase): eal_param = self.dut.create_eal_parameters(cores=self.core_list_user, prefix='virtio', no_pci=True, vdevs=['net_virtio_user0,mac=00:01:02:03:04:05,path=vhost-net,server=1,queues=%d,%s' % (self.queue_number, mode)]) if self.check_2M_env: eal_param += " --single-file-segments" - command_line_user = self.dut.target + "/app/testpmd " + eal_param + " -- -i %s --nb-cores=%d --rxq=%d --txq=%d" % (extern_params, self.nb_cores, self.queue_number, self.queue_number) + command_line_user = self.path + eal_param + " -- -i %s --nb-cores=%d --rxq=%d --txq=%d" % (extern_params, self.nb_cores, self.queue_number, self.queue_number) self.virtio_user.send_expect(command_line_user, "testpmd> ", 120) self.virtio_user.send_expect("set fwd mac", "testpmd> ", 120) -- 1.8.3.1