From 2d9b56096eb417b5e8a4fe8d1bc2c5238d624fb7 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Mon, 8 Nov 2010 21:40:53 +0100 Subject: [PATCH] add a way to configure code coverage --- citadel/debian/rules | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/citadel/debian/rules b/citadel/debian/rules index 6779c8f51..b9e067b2f 100755 --- a/citadel/debian/rules +++ b/citadel/debian/rules @@ -16,7 +16,7 @@ CFLAGS = -Wall -g EXTRA_ARGS= PROFILE_ARGS= -#to enable debugging: export DEB_BUILD_OPTIONS="debug profiling threadoff rss" +#to enable debugging: export DEB_BUILD_OPTIONS="debug profiling threadoff rss gcov" ifneq (,$(findstring profiling,$(DEB_BUILD_OPTIONS))) PROFILE_ARGS= --with-gprof endif @@ -45,6 +45,11 @@ ifneq (,$(findstring iodbg,$(DEB_BUILD_OPTIONS))) CFLAGS += -D BIGBAD_IODBG endif +ifneq (,$(findstring gcov,$(DEB_BUILD_OPTIONS))) + CFLAGS += -fprofile-arcs -ftest-coverage + LDFLAGS += -fprofile-arcs -ftest-coverage +endif + configure: configure-stamp configure-stamp: dh_testdir -- 2.39.2