From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 812721077 for ; Tue, 14 Feb 2017 18:07:17 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Feb 2017 09:07:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,162,1484035200"; d="scan'208";a="225238588" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.137]) ([10.237.220.137]) by fmsmga004.fm.intel.com with ESMTP; 14 Feb 2017 09:07:14 -0800 To: Bruce Richardson References: <20170214151326.7554-1-ferruh.yigit@intel.com> <20170214154131.GA20524@bricha3-MOBL3.ger.corp.intel.com> Cc: Thomas Monjalon , dev@dpdk.org From: Ferruh Yigit Message-ID: <8e969f23-6a65-553e-25ca-593c01c9fe8b@intel.com> Date: Tue, 14 Feb 2017 17:07:14 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20170214154131.GA20524@bricha3-MOBL3.ger.corp.intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [RFC 17.05] test: move tests to separate folder 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: , X-List-Received-Date: Tue, 14 Feb 2017 17:07:17 -0000 On 2/14/2017 3:41 PM, Bruce Richardson wrote: > On Tue, Feb 14, 2017 at 03:13:26PM +0000, Ferruh Yigit wrote: >> Tests are part of app folder and compiled with library every time. >> Moving tests into a "test" folder which won't be compiled by default. >> To compile tests, need to give explicit "make test" command. >> >> "make test" was previously used to run tests, which renamed to >> "make test_run" with this patch. >> >> This makes default compilation ~30% faster, >> [clang, make -j8, old]: real 1m04.355s >> [clang, make -j8, new]: real 0m41.740s >> >> For new case, test needs to built separately, which takes, >> [clang, make -j8 test]: real 0m24.293s >> >> The point is tests are not required always and by every one. >> >> Signed-off-by: Ferruh Yigit >> --- > > Hi Ferruh, > > I'm not sure I'm convinced by this, as I think there are advantages to > having the test code always compiled. Anything that is not compiled in > DPDK by default is more likely to be broken by patch submissions. The > speed boost to build is nice, but I'm not sure it's worth it. > However, I'm open to being convinced otherwise on this... Perhaps I should send this as two patches, first separate the unit tests and second disable tests in default compilation. Your concern is about disabling test compilation by default. - If nobody interested in running test, why force them to compile. If people interested in unit tests, test will be compiled and issues will be resolved. Unit tests are for developers more than end users, and if developers are not using unit tests we may have another thing to focus. - This should be automated somehow, unit test should be build and run regularly and automatically. So we can see when it is broken. Thanks, ferruh > > /Bruce >