mk: do not build tests by default
authorFerruh Yigit <ferruh.yigit@intel.com>
Thu, 16 Feb 2017 14:57:43 +0000 (14:57 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 28 Feb 2017 15:04:18 +0000 (16:04 +0100)
commit64592d97c1aebdb1f7a92c702d04ce269db08996
treef36f1c8ab0c8fef7346de06d3211161e9dab426b
parent7d3b1ec47fae5b2d972e05d0ee37bb7a1731b085
mk: do not build tests by default

Don't build tests with default "make" command.

Require explicit command to build tests because not everybody interested
in running unit tests.

Following changes done in make rules:
"make test-build"  <--- Added
"make test"        <--- Updated functionality (build + run basic tests)

Now "make test" builds all tests and runs unit test (test).

Thanks to dependency resolving, it is possible to call "make test"
directly after config, "make test" will compile dependent components
(lib and drivers, but not apps).

And a new "make test-build" make rule added which will build
tests but not run unit test. "make test-build" has same dependency
resolving features with "make test"

To include "test" folder into makesystem, existing ROOTDIRS- variable
is used instead of hardcoding folder name into makefiles, current usage
of ROOTDIRS* variables are:

ROOTDIRS-y <-- root level folders prepared and compiled by default
ROOTDIRS-  <-- root level folders prepared but not compiled by default

The preparation is required for dependency resolving and cleaning.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
GNUmakefile
mk/rte.sdkbuild.mk
mk/rte.sdkdepdirs.mk
mk/rte.sdkroot.mk