diff options
author | Damjan Marion <damarion@cisco.com> | 2016-04-11 13:34:36 +0200 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2016-04-11 13:03:30 +0000 |
commit | c47e9796746f96f1f8f08fb95c98f5bf632705f4 (patch) | |
tree | c941d1cebd51bbee6618ff1eca6b042cd7ba6d00 /build-data | |
parent | dba76f29e6ab51b0f3fd01ca2928652186392132 (diff) |
Add configure option to enable building unit tests
Same template should be used for other libs...
Change-Id: Icc771cb6b243d215f30fb51c0dbc028e497a74c6
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'build-data')
-rw-r--r-- | build-data/packages/vppinfra.mk | 5 | ||||
-rw-r--r-- | build-data/platforms/vpp.mk | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/build-data/packages/vppinfra.mk b/build-data/packages/vppinfra.mk index 92059877..6ca6eb24 100644 --- a/build-data/packages/vppinfra.mk +++ b/build-data/packages/vppinfra.mk @@ -1,2 +1,5 @@ -# nothing + +ifeq ($($(PLATFORM)_enable_tests),yes) +vppinfra_configure_args += --enable-tests +endif diff --git a/build-data/platforms/vpp.mk b/build-data/platforms/vpp.mk index 9b4a78c8..c3c18aeb 100644 --- a/build-data/platforms/vpp.mk +++ b/build-data/platforms/vpp.mk @@ -17,6 +17,9 @@ vpp_native_tools = vppapigen vpp_uses_dpdk = yes +# Uncoment to enable building unit tests +# vpp_enable_tests = yes + vpp_root_packages = vpp vlib vlib-api vnet svm vpp-api-test \ vpp-japi gmod |