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 2D86BA04AA; Tue, 8 Sep 2020 09:29:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 24BC81BEE1; Tue, 8 Sep 2020 09:29:27 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 51C381C0BE for ; Tue, 8 Sep 2020 09:29:25 +0200 (CEST) IronPort-SDR: IlxIqTXiTgxqbxCueUDefEyLGNOYi9mKJX8HL4e4q7RGcb6fUMOTG99cG7SJF2hwNuAvmKnZw/ Vj5dLl501qRg== X-IronPort-AV: E=McAfee;i="6000,8403,9737"; a="219646544" X-IronPort-AV: E=Sophos;i="5.76,404,1592895600"; d="scan'208";a="219646544" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Sep 2020 00:29:25 -0700 IronPort-SDR: haLO2UnC59JC7xYmq0FkAJ1k7wuh5l+WKEPYyU61sE1wN/X3K585InvyTvQMEBCS5Gj/T84Mv5 5/mTT3n/Bveg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,404,1592895600"; d="scan'208";a="377432606" Received: from unknown (HELO localhost.localdomain) ([10.240.183.52]) by orsmga001.jf.intel.com with ESMTP; 08 Sep 2020 00:29:23 -0700 From: "Zhou, Jun" To: dts@dpdk.org Cc: Zhou jun Date: Tue, 8 Sep 2020 07:17:52 +0000 Message-Id: <20200908071825.118583-6-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200908071825.118583-1-junx.w.zhou@intel.com> References: <20200908071825.118583-1-junx.w.zhou@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [dts 05/38] tests/TestSuite_external_memory.py: adapt to support both meson and makefile 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" From: Zhou jun Signed-off-by: Zhou jun --- tests/TestSuite_external_memory.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_external_memory.py b/tests/TestSuite_external_memory.py index 1623054..f899ae7 100644 --- a/tests/TestSuite_external_memory.py +++ b/tests/TestSuite_external_memory.py @@ -51,6 +51,7 @@ class TestExternalMemory(TestCase): self.verify(len(self.dut_ports) >= 2, "Insufficient ports") cores = self.dut.get_core_list("1S/4C/1T") self.coremask = utils.create_mask(cores) + self.app_testpmd_path = self.dut.apps_name['test-pmd'] def set_up(self): """ @@ -92,7 +93,8 @@ class TestExternalMemory(TestCase): Verifier IGB_UIO and anonymous memory allocation """ self.insmod_modprobe(modename="igb_uio") - cmd = "./%s/app/testpmd -c %s -n 4 -- --mp-alloc=xmem -i"%(self.target,self.coremask) + + cmd = "./%s -c %s -n 4 -- --mp-alloc=xmem -i" % (self.app_testpmd_path, self.coremask) self.dut.send_expect(cmd,"testpmd>",60) self.verifier_result() @@ -102,8 +104,7 @@ class TestExternalMemory(TestCase): Verifier IGB_UIO and anonymous hugepage memory allocation """ self.insmod_modprobe(modename="igb_uio") - - cmd = "./%s/app/testpmd -c %s -n 4 -- --mp-alloc=xmemhuge -i"%(self.target,self.coremask) + cmd = "./%s -c %s -n 4 -- --mp-alloc=xmemhuge -i" % (self.app_testpmd_path, self.coremask) self.dut.send_expect(cmd,"testpmd>",60) self.verifier_result() @@ -113,8 +114,7 @@ class TestExternalMemory(TestCase): Verifier VFIO_PCI and anonymous memory allocation """ self.insmod_modprobe(modename="vfio-pci") - - cmd = "./%s/app/testpmd -c %s -n 4 -- --mp-alloc=xmem -i"%(self.target,self.coremask) + cmd = "./%s -c %s -n 4 -- --mp-alloc=xmem -i" % (self.app_testpmd_path, self.coremask) self.dut.send_expect(cmd,"testpmd>",60) self.verifier_result() @@ -124,7 +124,7 @@ class TestExternalMemory(TestCase): Verifier VFIO and anonymous hugepage memory allocation """ self.insmod_modprobe(modename="vfio-pci") - cmd = "./%s/app/testpmd -c %s -n 4 -- --mp-alloc=xmemhuge -i"%(self.target,self.coremask) + cmd = "./%s -c %s -n 4 -- --mp-alloc=xmemhuge -i" % (self.app_testpmd_path, self.coremask) self.dut.send_expect(cmd,"testpmd>",60) self.verifier_result() -- 1.8.3.1