From: Wilfried Goesgens Date: Mon, 8 Nov 2010 20:40:53 +0000 (+0100) Subject: add a way to configure code coverage X-Git-Tag: v8.01~602 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=2d9b56096eb417b5e8a4fe8d1bc2c5238d624fb7;p=citadel.git add a way to configure code coverage --- 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