aboutsummaryrefslogtreecommitdiffstats
path: root/build-data
diff options
context:
space:
mode:
authorJuraj Sloboda <jsloboda@cisco.com>2016-11-16 19:50:24 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2016-12-09 20:09:35 +0000
commit0279b29f327c15a1c6b2d8ede228790c1a7d3814 (patch)
treed09294892f9379b14dd222d576616d1dd9fa84d8 /build-data
parentd7cb1b5f22948eba272e1a8844c75a2b87706fc4 (diff)
Add make test code coverage reporting using gcov
Change-Id: Ia8247841fdbe76e1d888aab49ae213b4216af273 Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
Diffstat (limited to 'build-data')
-rw-r--r--build-data/platforms/vpp_lite.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/build-data/platforms/vpp_lite.mk b/build-data/platforms/vpp_lite.mk
index 94e69511..ef2ec444 100644
--- a/build-data/platforms/vpp_lite.mk
+++ b/build-data/platforms/vpp_lite.mk
@@ -44,3 +44,8 @@ vpp_lite_TAG_CFLAGS = -g -O2 -DFORTIFY_SOURCE=2 -march=$(MARCH) -mtune=$(MTUNE)
-fstack-protector -fPIC -Werror
vpp_lite_TAG_LDFLAGS = -g -O2 -DFORTIFY_SOURCE=2 -march=$(MARCH) -mtune=$(MTUNE) \
-fstack-protector -fPIC -Werror
+
+vpp_lite_gcov_TAG_CFLAGS = -g -O0 -DCLIB_DEBUG -march=$(MARCH) \
+ -fPIC -Werror -fprofile-arcs -ftest-coverage
+vpp_lite_gcov_TAG_LDFLAGS = -g -O0 -DCLIB_DEBUG -march=$(MARCH) \
+ -fPIC -Werror -coverage