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 31FF6A04DB; Fri, 4 Sep 2020 10:17:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A555A1C0C0; Fri, 4 Sep 2020 10:17:04 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 70F25255 for ; Fri, 4 Sep 2020 10:17:03 +0200 (CEST) IronPort-SDR: Hfbpdq/xX4+dWlQ8a/WD0kn/0dVu6nuyV8uTb7HclxT4YrBU+d8jXCZFF8WlDfGtDAGH9sYu1E J0mGSdHd5oRA== X-IronPort-AV: E=McAfee;i="6000,8403,9733"; a="175763241" X-IronPort-AV: E=Sophos;i="5.76,389,1592895600"; d="scan'208";a="175763241" 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:02 -0700 IronPort-SDR: iDpOfUO3V/g2eiwP/HuxYUVOBo12Okavu0SFNlL2iQAwy7m9AbTK1+4Yfa2dwYQROkX1N1TLMf C0+b0G9bP41A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,389,1592895600"; d="scan'208";a="315782538" 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:01 -0700 From: xizhan4x To: dts@dpdk.org Cc: xizhan4x Date: Fri, 4 Sep 2020 16:18:09 +0800 Message-Id: <1599207525-22123-2-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 02/38] tests-TestSuite_dpdk_gso_lib.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_dpdk_gso_lib.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_dpdk_gso_lib.py b/tests/TestSuite_dpdk_gso_lib.py index 433869a..722a7c9 100644 --- a/tests/TestSuite_dpdk_gso_lib.py +++ b/tests/TestSuite_dpdk_gso_lib.py @@ -70,6 +70,8 @@ class TestDPDKGsoLib(TestCase): 'Pls config the direct connection info in vhost_peer_conf.cfg') bind_script_path = self.dut.get_dpdk_bind_script() self.dut.send_expect('%s --bind=%s %s' % (bind_script_path, self.def_driver, self.pci), '# ') + self.path=self.dut.apps_name['test-pmd'] + self.testpmd_name=self.path.split("/")[-1] # get the numa info about the pci info which config in peer cfg bus = int(self.pci[5:7], base=16) @@ -103,7 +105,7 @@ class TestDPDKGsoLib(TestCase): # Run before each test case. # Clean the execution ENV self.dut.send_expect("rm -rf %s/vhost-net*" % self.base_dir, "#") - self.dut.send_expect("killall -s INT testpmd", "#") + self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#") self.dut.send_expect("killall -s INT qemu-system-x86_64", "#") def launch_testpmd_gso_on(self, mode=0): @@ -113,7 +115,7 @@ class TestDPDKGsoLib(TestCase): # mode = 3: TSO # mode = others: NO DPDK GSO/TSO eal_param = self.dut.create_eal_parameters(cores=self.vhost_list, vdevs=['net_vhost0,iface=%s/vhost-net,queues=1' % self.base_dir]) - self.testcmd_start = self.target + "/app/testpmd " + eal_param + " -- -i --tx-offloads=0x00 --txd=1024 --rxd=1024" + self.testcmd_start = self.path + eal_param + " -- -i --tx-offloads=0x00 --txd=1024 --rxd=1024" self.vhost_user = self.dut.new_session(suite="user") self.vhost_user.send_expect(self.testcmd_start, "testpmd> ", 120) self.vhost_user.send_expect("set fwd csum", "testpmd> ", 120) @@ -521,7 +523,7 @@ class TestDPDKGsoLib(TestCase): """ Run after each test case. """ - self.dut.send_expect("killall -s INT testpmd", "#") + self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#") self.dut.send_expect("killall -s INT qemu-system-x86_64", "#") self.dut.send_expect( "./usertools/dpdk-devbind.py -u %s" % (self.peer_pci), '# ', 30) -- 1.8.3.1