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 5C934A04AA; Tue, 8 Sep 2020 09:29:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 542561C0CA; Tue, 8 Sep 2020 09:29:29 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 64CBF1C0CF for ; Tue, 8 Sep 2020 09:29:27 +0200 (CEST) IronPort-SDR: hak6zyd/71n3JpVpZ7yldfNk4NOHDnoHrtme0iRiTTVZm5tgtlJWj6Nq6L+uvHzj9xinYbEn+E iIzjx+p5pB2g== X-IronPort-AV: E=McAfee;i="6000,8403,9737"; a="219646549" X-IronPort-AV: E=Sophos;i="5.76,404,1592895600"; d="scan'208";a="219646549" 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:27 -0700 IronPort-SDR: slYybKG3MQY1TuHKs0x1gV1dWP0+i3V5UajTYKpBg5dEKBsOt4c4j8b4ug95v4pIoUXnU1Kk3N PI1eN3Oqx49w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,404,1592895600"; d="scan'208";a="377432613" Received: from unknown (HELO localhost.localdomain) ([10.240.183.52]) by orsmga001.jf.intel.com with ESMTP; 08 Sep 2020 00:29:25 -0700 From: "Zhou, Jun" To: dts@dpdk.org Cc: Zhou jun Date: Tue, 8 Sep 2020 07:17:53 +0000 Message-Id: <20200908071825.118583-7-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 06/38] tests/TestSuite_external_mempool_handler.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_mempool_handler.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_external_mempool_handler.py b/tests/TestSuite_external_mempool_handler.py index e41b586..6b046c3 100644 --- a/tests/TestSuite_external_mempool_handler.py +++ b/tests/TestSuite_external_mempool_handler.py @@ -51,6 +51,8 @@ class TestExternalMempool(TestCase): self.pmdout = PmdOutput(self.dut) + self.app_test_path = self.dut.apps_name['test'] + def set_up(self): """ Run before each test case. @@ -62,13 +64,13 @@ class TestExternalMempool(TestCase): self.dut.build_install_dpdk(self.target) def verify_unit_func(self): - self.dut.send_expect("./%s/app/test -n 4 -c f" % self.target, "R.*T.*E.*>.*>", 60) + self.dut.send_expect("./%s -n 4 -c f" % self.app_test_path, "R.*T.*E.*>.*>", 60) out = self.dut.send_expect("mempool_autotest", "RTE>>", 120) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Mempool autotest failed") def verify_unit_perf(self): - self.dut.send_expect("./%s/app/test -n 4 -c f" % self.target, "R.*T.*E.*>.*>", 60) + self.dut.send_expect("./%s -n 4 -c f" % self.app_test_path, "R.*T.*E.*>.*>", 60) out = self.dut.send_expect("mempool_perf_autotest", "RTE>>", 1200) self.dut.send_expect("quit", "# ") # may need to compare performance -- 1.8.3.1