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 C1951A04C5; Fri, 4 Sep 2020 10:17:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B60CF1C0BD; Fri, 4 Sep 2020 10:17:12 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 751D6255 for ; Fri, 4 Sep 2020 10:17:11 +0200 (CEST) IronPort-SDR: nENTX5JNF/yOYhE1NWAQq4R1onnEyPQiPMAKN0VPaKIkLIiyNMjkPiWiPhWf/0rnvAEcKdhXZC su8iQLU9Tvhg== X-IronPort-AV: E=McAfee;i="6000,8403,9733"; a="175763262" X-IronPort-AV: E=Sophos;i="5.76,389,1592895600"; d="scan'208";a="175763262" 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:10 -0700 IronPort-SDR: WN9SEN3BvBEsdfHMPgUnV9ovuQKppRsktFG8Iau9eZRkLRH7R+VT9ciFqYfLyoKjYzrTzTYY7A y2t8q7PHhaRg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,389,1592895600"; d="scan'208";a="315782589" 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:09 -0700 From: xizhan4x To: dts@dpdk.org Cc: xizhan4x Date: Fri, 4 Sep 2020 16:18:15 +0800 Message-Id: <1599207525-22123-8-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 08/38] tests-TestSuite_generic_flow_api.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_generic_flow_api.py | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/tests/TestSuite_generic_flow_api.py b/tests/TestSuite_generic_flow_api.py index 7e95d4b..bed6796 100644 --- a/tests/TestSuite_generic_flow_api.py +++ b/tests/TestSuite_generic_flow_api.py @@ -101,6 +101,7 @@ class TestGeneric_flow_api(TestCase): self.wrong_mac = "00:11:22:33:44:77" self.vf_flag = 0 self.pkt_obj = packet.Packet() + self.app_path=self.dut.apps_name["test-pmd"] def set_up(self): """ @@ -835,13 +836,13 @@ class TestGeneric_flow_api(TestCase): self.dut.send_expect("start", "testpmd> ", 120) time.sleep(2) # start testpmd on vf0 - self.session_secondary.send_expect("./%s/app/testpmd -c 0x1e0 -n 4 -m 1024 -w %s --file-prefix=vf1 -- -i --rxq=4 --txq=4" % (self.target, self.sriov_vfs_port[0].pci), "testpmd>", 120) + self.session_secondary.send_expect("%s -c 0x1e0 -n 4 -m 1024 -w %s --file-prefix=vf1 -- -i --rxq=4 --txq=4" % (self.app_path, self.sriov_vfs_port[0].pci), "testpmd>", 120) self.session_secondary.send_expect("set fwd rxonly", "testpmd> ") self.session_secondary.send_expect("set verbose 1", "testpmd> ") self.session_secondary.send_expect("start", "testpmd> ") time.sleep(2) # start testpmd on vf1 - self.session_third.send_expect("./%s/app/testpmd -c 0x1e00 -n 4 -m 1024 -w %s --file-prefix=vf2 -- -i --rxq=4 --txq=4" % (self.target, self.sriov_vfs_port[1].pci), "testpmd>", 120) + self.session_third.send_expect("%s -c 0x1e00 -n 4 -m 1024 -w %s --file-prefix=vf2 -- -i --rxq=4 --txq=4" % (self.app_path, self.sriov_vfs_port[1].pci), "testpmd>", 120) self.session_third.send_expect("set fwd rxonly", "testpmd> ") self.session_third.send_expect("set verbose 1", "testpmd> ") self.session_third.send_expect("start", "testpmd> ") @@ -1332,13 +1333,13 @@ class TestGeneric_flow_api(TestCase): self.dut.send_expect("start", "testpmd> ", 120) time.sleep(2) # start testpmd on vf0 - self.session_secondary.send_expect("./%s/app/testpmd -c 0x1e0000 -n 4 --socket-mem 1024,1024 --legacy-mem -w %s --file-prefix=vf1 -- -i --rxq=4 --txq=4 --disable-rss --pkt-filter-mode=perfect" % (self.target, self.sriov_vfs_port[0].pci), "testpmd>", 120) + self.session_secondary.send_expect("%s -c 0x1e0000 -n 4 --socket-mem 1024,1024 --legacy-mem -w %s --file-prefix=vf1 -- -i --rxq=4 --txq=4 --disable-rss --pkt-filter-mode=perfect" % (self.app_path, self.sriov_vfs_port[0].pci), "testpmd>", 120) self.session_secondary.send_expect("set fwd rxonly", "testpmd>") self.session_secondary.send_expect("set verbose 1", "testpmd>") self.session_secondary.send_expect("start", "testpmd>") time.sleep(2) # start testpmd on vf1 - self.session_third.send_expect("./%s/app/testpmd -c 0x1e000000 -n 4 --socket-mem 1024,1024 --legacy-mem -w %s --file-prefix=vf2 -- -i --rxq=4 --txq=4 --disable-rss --pkt-filter-mode=perfect" % (self.target, self.sriov_vfs_port[1].pci), "testpmd>", 120) + self.session_third.send_expect("%s -c 0x1e000000 -n 4 --socket-mem 1024,1024 --legacy-mem -w %s --file-prefix=vf2 -- -i --rxq=4 --txq=4 --disable-rss --pkt-filter-mode=perfect" % (self.app_path, self.sriov_vfs_port[1].pci), "testpmd>", 120) self.session_third.send_expect("set fwd rxonly", "testpmd>") self.session_third.send_expect("set verbose 1", "testpmd>") self.session_third.send_expect("start", "testpmd>") @@ -1428,13 +1429,13 @@ class TestGeneric_flow_api(TestCase): self.dut.send_expect("start", "testpmd> ", 120) time.sleep(2) # start testpmd on vf0 - self.session_secondary.send_expect("./%s/app/testpmd -c 0x1e0000 -n 4 --socket-mem 1024,1024 --legacy-mem -w %s --file-prefix=vf1 -- -i --rxq=4 --txq=4 --disable-rss --pkt-filter-mode=perfect" % (self.target, self.sriov_vfs_port[0].pci), "testpmd>", 120) + self.session_secondary.send_expect("%s -c 0x1e0000 -n 4 --socket-mem 1024,1024 --legacy-mem -w %s --file-prefix=vf1 -- -i --rxq=4 --txq=4 --disable-rss --pkt-filter-mode=perfect" % (self.app_path, self.sriov_vfs_port[0].pci), "testpmd>", 120) self.session_secondary.send_expect("set fwd rxonly", "testpmd>") self.session_secondary.send_expect("set verbose 1", "testpmd>") self.session_secondary.send_expect("start", "testpmd>") time.sleep(2) # start testpmd on vf1 - self.session_third.send_expect("./%s/app/testpmd -c 0x1e000000 -n 4 --socket-mem 1024,1024 --legacy-mem -w %s --file-prefix=vf2 -- -i --rxq=4 --txq=4 --disable-rss --pkt-filter-mode=perfect" % (self.target, self.sriov_vfs_port[1].pci), "testpmd>", 120) + self.session_third.send_expect("%s -c 0x1e000000 -n 4 --socket-mem 1024,1024 --legacy-mem -w %s --file-prefix=vf2 -- -i --rxq=4 --txq=4 --disable-rss --pkt-filter-mode=perfect" % (self.app_path, self.sriov_vfs_port[1].pci), "testpmd>", 120) self.session_third.send_expect("set fwd rxonly", "testpmd>") self.session_third.send_expect("set verbose 1", "testpmd>") self.session_third.send_expect("start", "testpmd>") @@ -1535,12 +1536,12 @@ class TestGeneric_flow_api(TestCase): self.dut.send_expect("set verbose 1", "testpmd> ", 120) self.dut.send_expect("start", "testpmd> ", 120) time.sleep(2) - self.session_secondary.send_expect("./%s/app/testpmd -c 0x1e0000 -n 4 --socket-mem 1024,1024 --legacy-mem -w %s --file-prefix=vf1 -- -i --rxq=4 --txq=4 --disable-rss --pkt-filter-mode=perfect" % (self.target, self.sriov_vfs_port[0].pci), "testpmd>", 120) + self.session_secondary.send_expect("%s -c 0x1e0000 -n 4 --socket-mem 1024,1024 --legacy-mem -w %s --file-prefix=vf1 -- -i --rxq=4 --txq=4 --disable-rss --pkt-filter-mode=perfect" % (self.app_path, self.sriov_vfs_port[0].pci), "testpmd>", 120) self.session_secondary.send_expect("set fwd rxonly", "testpmd>") self.session_secondary.send_expect("set verbose 1", "testpmd>") self.session_secondary.send_expect("start", "testpmd>") time.sleep(2) - self.session_third.send_expect("./%s/app/testpmd -c 0x1e000000 -n 4 --socket-mem 1024,1024 --legacy-mem -w %s --file-prefix=vf2 -- -i --rxq=4 --txq=4 --disable-rss --pkt-filter-mode=perfect" % (self.target, self.sriov_vfs_port[1].pci), "testpmd>", 120) + self.session_third.send_expect("%s -c 0x1e000000 -n 4 --socket-mem 1024,1024 --legacy-mem -w %s --file-prefix=vf2 -- -i --rxq=4 --txq=4 --disable-rss --pkt-filter-mode=perfect" % (self.app_path, self.sriov_vfs_port[1].pci), "testpmd>", 120) self.session_third.send_expect("set fwd rxonly", "testpmd>") self.session_third.send_expect("set verbose 1", "testpmd>") self.session_third.send_expect("start", "testpmd>") @@ -1982,12 +1983,12 @@ class TestGeneric_flow_api(TestCase): self.dut.send_expect("set verbose 1", "testpmd> ", 120) self.dut.send_expect("start", "testpmd> ", 120) time.sleep(2) - self.session_secondary.send_expect("./%s/app/testpmd -c 0x1e0000 -n 4 --socket-mem 1024,1024 --legacy-mem -w %s --file-prefix=vf1 -- -i --rxq=4 --txq=4 --disable-rss" % (self.target, self.sriov_vfs_port[0].pci), "testpmd>", 120) + self.session_secondary.send_expect("%s -c 0x1e0000 -n 4 --socket-mem 1024,1024 --legacy-mem -w %s --file-prefix=vf1 -- -i --rxq=4 --txq=4 --disable-rss" % (self.app_path, self.sriov_vfs_port[0].pci), "testpmd>", 120) self.session_secondary.send_expect("set fwd rxonly", "testpmd>") self.session_secondary.send_expect("set verbose 1", "testpmd>") self.session_secondary.send_expect("start", "testpmd>") time.sleep(2) - self.session_third.send_expect("./%s/app/testpmd -c 0x1e000000 -n 4 --socket-mem 1024,1024 --legacy-mem -w %s --file-prefix=vf2 -- -i --rxq=4 --txq=4 --disable-rss" % (self.target, self.sriov_vfs_port[1].pci), "testpmd>", 120) + self.session_third.send_expect("%s -c 0x1e000000 -n 4 --socket-mem 1024,1024 --legacy-mem -w %s --file-prefix=vf2 -- -i --rxq=4 --txq=4 --disable-rss" % (self.app_path, self.sriov_vfs_port[1].pci), "testpmd>", 120) self.session_third.send_expect("set fwd rxonly", "testpmd>") self.session_third.send_expect("set verbose 1", "testpmd>") self.session_third.send_expect("start", "testpmd>") @@ -2045,12 +2046,12 @@ class TestGeneric_flow_api(TestCase): self.dut.send_expect("set verbose 1", "testpmd> ", 120) self.dut.send_expect("start", "testpmd> ", 120) time.sleep(2) - self.session_secondary.send_expect("./%s/app/testpmd -c 0x1e0000 -n 4 --socket-mem 1024,1024 --legacy-mem -w %s --file-prefix=vf1 -- -i --rxq=4 --txq=4 --disable-rss" % (self.target, self.sriov_vfs_port[0].pci), "testpmd>", 120) + self.session_secondary.send_expect("%s -c 0x1e0000 -n 4 --socket-mem 1024,1024 --legacy-mem -w %s --file-prefix=vf1 -- -i --rxq=4 --txq=4 --disable-rss" % (self.app_path, self.sriov_vfs_port[0].pci), "testpmd>", 120) self.session_secondary.send_expect("set fwd rxonly", "testpmd>") self.session_secondary.send_expect("set verbose 1", "testpmd>") self.session_secondary.send_expect("start", "testpmd>") time.sleep(2) - self.session_third.send_expect("./%s/app/testpmd -c 0x1e000000 -n 4 --socket-mem 1024,1024 --legacy-mem -w %s --file-prefix=vf2 -- -i --rxq=4 --txq=4 --disable-rss" % (self.target, self.sriov_vfs_port[1].pci), "testpmd>", 120) + self.session_third.send_expect("%s -c 0x1e000000 -n 4 --socket-mem 1024,1024 --legacy-mem -w %s --file-prefix=vf2 -- -i --rxq=4 --txq=4 --disable-rss" % (self.app_path, self.sriov_vfs_port[1].pci), "testpmd>", 120) self.session_third.send_expect("set fwd rxonly", "testpmd>") self.session_third.send_expect("set verbose 1", "testpmd>") self.session_third.send_expect("start", "testpmd>") @@ -2105,3 +2106,4 @@ class TestGeneric_flow_api(TestCase): self.dut.kill_all() self.dut.close_session(self.session_secondary) self.dut.close_session(self.session_third) + -- 1.8.3.1