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 0BA75A04C5; Fri, 4 Sep 2020 10:17:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 02E081C0D9; Fri, 4 Sep 2020 10:17:36 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 8367E1C0CC for ; Fri, 4 Sep 2020 10:17:34 +0200 (CEST) IronPort-SDR: l9fqHkbHviPGDSV69/XjsQiDJqFZY8j6/zgupxZcf1f56qvOhgtMQxZUddjsh6wkCUK7KATHGH 6pTFbW6kcEgg== X-IronPort-AV: E=McAfee;i="6000,8403,9733"; a="175763300" X-IronPort-AV: E=Sophos;i="5.76,389,1592895600"; d="scan'208";a="175763300" 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:34 -0700 IronPort-SDR: PSVabO9DKiPmXTXBb3zmr8YFbqSxKiDA6+DsmyUhZMW4E/YGrqAAp7AIz8nQ4nXYjDENDk2Z7x gyfC7xdbFbjQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,389,1592895600"; d="scan'208";a="315782708" 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:33 -0700 From: xizhan4x To: dts@dpdk.org Cc: xizhan4x Date: Fri, 4 Sep 2020 16:18:29 +0800 Message-Id: <1599207525-22123-22-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 22/38] tests/TestSuite_pmdpcap.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_pmdpcap.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_pmdpcap.py b/tests/TestSuite_pmdpcap.py index 509af0b..cec987a 100644 --- a/tests/TestSuite_pmdpcap.py +++ b/tests/TestSuite_pmdpcap.py @@ -66,6 +66,7 @@ class TestPmdPcap(TestCase): os_type = self.dut.get_os_type() if os_type == "freebsd": self.dut.send_expect("kldload contigmem", "#",20) + self.path=self.dut.apps_name['test-pmd'] def get_pcap_compile_config(self): config_head = "common_" @@ -128,11 +129,11 @@ class TestPmdPcap(TestCase): self.create_pcap_file(in_pcap, TestPmdPcap.pcap_file_sizes[0]) self.dut.session.copy_file_to(in_pcap) - command = ("./{}/app/testpmd -c {} -n {} " + + command = ("{} -c {} -n {} " + "--vdev=eth_pcap0,rx_pcap={},tx_pcap={} " + "-- -i --port-topology=chained --no-flush-rx") - self.dut.send_expect(command.format(self.target, core_mask, + self.dut.send_expect(command.format(self.path, core_mask, self.memory_channel, TestPmdPcap.dut_pcap_files_path + in_pcap, out_pcap), 'testpmd> ', 15) @@ -161,12 +162,12 @@ class TestPmdPcap(TestCase): self.create_pcap_file(in_pcap2, TestPmdPcap.pcap_file_sizes[1]) self.dut.session.copy_file_to(in_pcap2) - command = ("./{}/app/testpmd -c {} -n {} " + + command = ("{} -c {} -n {} " + "--vdev=eth_pcap0,rx_pcap={},tx_pcap={} " + "--vdev=eth_pcap1,rx_pcap={},tx_pcap={} " + "-- -i --no-flush-rx") - self.dut.send_expect(command.format(self.target, core_mask, + self.dut.send_expect(command.format(self.path, core_mask, self.memory_channel, TestPmdPcap.dut_pcap_files_path + in_pcap1, -- 1.8.3.1