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 6DE9BA04B5; Fri, 11 Sep 2020 04:59:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 657B01BFCD; Fri, 11 Sep 2020 04:59:58 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 10CEFE07 for ; Fri, 11 Sep 2020 04:59:56 +0200 (CEST) IronPort-SDR: 2opdabWidfVixHC8Sr6c6Hb51fwtyuL0l4DUN3Q79pLY/nuGlDeGHN6yjvmFho+oWFtSlR0L/E GMpFVyCenzHg== X-IronPort-AV: E=McAfee;i="6000,8403,9740"; a="222881667" X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="222881667" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2020 19:59:56 -0700 IronPort-SDR: svPZuDjglWXQnnV2R7jDgWuM42KsJDAWB4ndPpL55JFVAHkR7oRzym0lCz5I2R69OuyU5Tv07g Aa9Zauvr/oIQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="318135487" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 10 Sep 2020 19:59:55 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Fri, 11 Sep 2020 10:57:57 +0800 Message-Id: <20200911025758.9246-5-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200911025758.9246-1-weix.xie@intel.com> References: <20200911025758.9246-1-weix.xie@intel.com> Subject: [dts] [PATCH V1 4/5] tests/TestSuite_iavf_fdir:support meson build method 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: Xie wei --- tests/TestSuite_iavf_fdir.py | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/tests/TestSuite_iavf_fdir.py b/tests/TestSuite_iavf_fdir.py index eaea13f..3deadff 100644 --- a/tests/TestSuite_iavf_fdir.py +++ b/tests/TestSuite_iavf_fdir.py @@ -1993,6 +1993,7 @@ class TestIAVFFdir(TestCase): self.pkt = Packet() self.pmd_output = PmdOutput(self.dut) + self.path = self.dut.apps_name['test-pmd'] self.src_file_dir = 'dep/' self.dut_file_dir = '/tmp/' @@ -2563,12 +2564,12 @@ class TestIAVFFdir(TestCase): m1 = p.search(out_pf1) eal_param = "-c 0xf -n 6 -w %s -w %s --file-prefix=pf0" % (self.sriov_vfs_pf0[0].pci,self.sriov_vfs_pf0[1].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={}".format(self.cvlq_num, self.cvlq_num)) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) self.dut.send_expect(command, "testpmd> ", 300) self.config_testpmd() eal_param = "-c 0xf0 -n 6 -w %s -w %s --file-prefix=pf1" % (self.sriov_vfs_pf1[0].pci,self.sriov_vfs_pf1[1].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={}".format(self.cvlq_num, self.cvlq_num)) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) self.session_secondary.send_expect(command, "testpmd> ", 300) #self.session_secondary.config_testpmd() self.session_secondary.send_expect("set fwd rxonly", "testpmd> ") @@ -2716,12 +2717,12 @@ class TestIAVFFdir(TestCase): m1 = p.search(out_pf1) eal_param = "-c 0xf -n 6 -w %s -w %s --file-prefix=pf0" % (self.sriov_vfs_pf0[0].pci,self.sriov_vfs_pf0[1].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={}".format(self.cvlq_num, self.cvlq_num)) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) self.dut.send_expect(command, "testpmd> ", 300) self.config_testpmd() eal_param = "-c 0xf0 -n 6 -w %s -w %s --file-prefix=pf1" % (self.sriov_vfs_pf1[0].pci,self.sriov_vfs_pf1[1].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={}".format(self.cvlq_num, self.cvlq_num)) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) self.session_secondary.send_expect(command, "testpmd> ", 300) #self.session_secondary.config_testpmd() self.session_secondary.send_expect("set fwd rxonly", "testpmd> ") @@ -2869,12 +2870,12 @@ class TestIAVFFdir(TestCase): m1 = p.search(out_pf1) eal_param = "-c 0xf -n 6 -w %s -w %s --file-prefix=pf0" % (self.sriov_vfs_pf0[0].pci,self.sriov_vfs_pf0[1].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={}".format(self.cvlq_num, self.cvlq_num)) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) self.dut.send_expect(command, "testpmd> ", 300) self.config_testpmd() eal_param = "-c 0xf0 -n 6 -w %s -w %s --file-prefix=pf1" % (self.sriov_vfs_pf1[0].pci,self.sriov_vfs_pf1[1].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={}".format(self.cvlq_num, self.cvlq_num)) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) self.session_secondary.send_expect(command, "testpmd> ", 300) #self.session_secondary.config_testpmd() self.session_secondary.send_expect("set fwd rxonly", "testpmd> ") @@ -3006,7 +3007,7 @@ class TestIAVFFdir(TestCase): self.dut.session.copy_file_to(self.src_file_dir + src_file, self.dut_file_dir) eal_param = "-c f -n 6 -w %s -w %s" % (self.sriov_vfs_pf0[0].pci,self.sriov_vfs_pf0[1].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={} --cmdline-file=%s".format(self.cvlq_num, self.cvlq_num) % self.dut_file_dir + src_file) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) + " --cmdline-file=%s" % self.dut_file_dir + src_file self.dut.send_expect(command, "testpmd> ", 300) self.config_testpmd() @@ -3076,7 +3077,7 @@ class TestIAVFFdir(TestCase): self.dut.session.copy_file_to(self.src_file_dir + src_file, self.dut_file_dir) eal_param = "-c f -n 6 -w %s -w %s" % (self.sriov_vfs_pf0[0].pci,self.sriov_vfs_pf1[0].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={} --cmdline-file=%s".format(self.cvlq_num, self.cvlq_num) % self.dut_file_dir + src_file) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) + " --cmdline-file=%s" % self.dut_file_dir + src_file self.dut.send_expect(command, "testpmd> ", 300) self.config_testpmd() @@ -3192,7 +3193,7 @@ class TestIAVFFdir(TestCase): # start testpmd with creating rules in commandline eal_param = "-c f -n 6 -w %s -w %s" % (self.sriov_vfs_pf0[0].pci,self.sriov_vfs_pf0[1].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={} --cmdline-file=%s".format(self.cvlq_num, self.cvlq_num) % self.dut_file_dir + src_file_vf) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) + " --cmdline-file=%s" % self.dut_file_dir + src_file_vf fdw = open("15360_rules_vf_result.txt", "w") fdw.write(self.dut.send_expect(command, "testpmd> ", 360)) fdw.close() @@ -3269,7 +3270,7 @@ class TestIAVFFdir(TestCase): self.dut.send_expect("ethtool -N %s flow-type tcp4 src-ip 192.168.100.0 dst-ip 192.168.100.2 src-port 32 dst-port 33 action 8" % self.pf1_intf, "Cannot insert RX class rule: No space left on device") # start testpmd with creating rules in commandline eal_param = "-c f -n 6 -w %s -w %s" % (self.sriov_vfs_pf0[0].pci,self.sriov_vfs_pf1[0].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={}".format(self.cvlq_num, self.cvlq_num)) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) self.dut.send_expect(command, "testpmd> ", 20) self.config_testpmd() @@ -3330,7 +3331,7 @@ class TestIAVFFdir(TestCase): self.verify(False, 'The number of ports is not supported') self.dut.send_expect("ip link set {} vf {} mac 00:11:22:33:44:55".format(self.pf0_intf, nex_cnt), '#') - command = "./%s/app/testpmd -c f -n 6 -- -i %s" % (self.dut.target, "--rxq=4 --txq=4") + command = self.path + " -c f -n 6 -- -i --rxq=4 --txq=4" self.dut.send_expect(command, "testpmd> ", 360) self.config_testpmd() @@ -3414,7 +3415,7 @@ class TestIAVFFdir(TestCase): self.dut.session.copy_file_to(self.src_file_dir + src_file, self.dut_file_dir) eal_param = "-c f -n 6 -w %s -w %s" % (self.sriov_vfs_pf0[0].pci,self.sriov_vfs_pf0[1].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={} --cmdline-file=%s".format(self.cvlq_num, self.cvlq_num) % self.dut_file_dir + src_file) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) + " --cmdline-file=%s" % self.dut_file_dir + src_file self.dut.send_expect(command, "testpmd> ", 900) self.config_testpmd() self.check_fdir_rule(port_id=0, stats=False) @@ -3449,7 +3450,7 @@ class TestIAVFFdir(TestCase): self.dut.session.copy_file_to(self.src_file_dir + src_file, self.dut_file_dir) eal_param = "-c f -n 6 -w %s -w %s" % (self.sriov_vfs_pf0[0].pci,self.sriov_vfs_pf0[1].pci) - command = "./%s/app/testpmd %s -- -i %s" % (self.dut.target, eal_param, "--rxq={} --txq={} --cmdline-file=%s".format(self.cvlq_num, self.cvlq_num) % self.dut_file_dir + src_file) + command = self.path + eal_param + " -- -i --rxq=%s --txq=%s" % (self.cvlq_num, self.cvlq_num) + " --cmdline-file=%s" % self.dut_file_dir + src_file self.dut.send_expect(command, "testpmd> ", 900) self.config_testpmd() self.check_fdir_rule(port_id=0, stats=False) -- 2.17.1