From patchwork Thu Feb 16 14:57:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ferruh Yigit X-Patchwork-Id: 20498 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 23CCABD28; Thu, 16 Feb 2017 15:58:07 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id E79BB5A3E for ; Thu, 16 Feb 2017 15:57:56 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Feb 2017 06:57:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,169,1484035200"; d="scan'208";a="46156335" Received: from sivswdev02.ir.intel.com ([10.237.217.46]) by orsmga002.jf.intel.com with ESMTP; 16 Feb 2017 06:57:54 -0800 From: Ferruh Yigit To: Thomas Monjalon Cc: dev@dpdk.org, Ferruh Yigit , Bruce Richardson , John McNamara , Keith Wiles Date: Thu, 16 Feb 2017 14:57:44 +0000 Message-Id: <20170216145746.28610-3-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20170216145746.28610-1-ferruh.yigit@intel.com> References: <20170215152632.25081-1-ferruh.yigit@intel.com> <20170216145746.28610-1-ferruh.yigit@intel.com> Subject: [dpdk-dev] [PATCH v2 3/5] mk: add new test-basic make rule X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Since "make test" and "make test-build" does dependency resolving, they check for all dependent components (lib and drivers) which takes a few seconds. This is a good feature during development, but if the target is only running unit test, that step is unnecessary, it is possible to compile once and run unit test multiple times, without checking any code update. For this purpose, a new make rule "make test-basic" added. Which only runs the unit test, expects that unit test already compiled. Signed-off-by: Ferruh Yigit Acked-by: Bruce Richardson --- mk/rte.sdkroot.mk | 4 ++-- mk/rte.sdktest.mk | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mk/rte.sdkroot.mk b/mk/rte.sdkroot.mk index 1bc0f94..498a85e 100644 --- a/mk/rte.sdkroot.mk +++ b/mk/rte.sdkroot.mk @@ -92,8 +92,8 @@ default: all config showconfigs showversion showversionum: $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkconfig.mk $@ -.PHONY: test fast_test ring_test mempool_test perf_test coverage -test fast_test ring_test mempool_test perf_test coverage: +.PHONY: test test-basic fast_test ring_test mempool_test perf_test coverage +test test-basic fast_test ring_test mempool_test perf_test coverage: $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdktest.mk $@ .PHONY: test-buid diff --git a/mk/rte.sdktest.mk b/mk/rte.sdktest.mk index 1cdb40b..d61d4d0 100644 --- a/mk/rte.sdktest.mk +++ b/mk/rte.sdktest.mk @@ -46,14 +46,14 @@ DIR := $(shell basename $(RTE_OUTPUT)) # # test: launch auto-tests, very simple for now. # -.PHONY: test fast_test perf_test coverage +.PHONY: test test-basic fast_test perf_test coverage PERFLIST=ring_perf,mempool_perf,memcpy_perf,hash_perf,timer_perf coverage: BLACKLIST=-$(PERFLIST) fast_test: BLACKLIST=-$(PERFLIST) perf_test: WHITELIST=$(PERFLIST) -test fast_test perf_test: +test test-basic fast_test perf_test: @mkdir -p $(AUTOTEST_DIR) ; \ cd $(AUTOTEST_DIR) ; \ if [ -f $(RTE_OUTPUT)/app/test ]; then \