summaryrefslogtreecommitdiffstats
path: root/build-data
diff options
context:
space:
mode:
Diffstat (limited to 'build-data')
-rw-r--r--build-data/packages/vppinfra.mk5
-rw-r--r--build-data/platforms/vpp.mk3
2 files changed, 7 insertions, 1 deletions
diff --git a/build-data/packages/vppinfra.mk b/build-data/packages/vppinfra.mk
index 92059877430..6ca6eb24b92 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 9b4a78c89e7..c3c18aebc1c 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