Opened 19 years ago

Closed 19 years ago

#1242 closed defect (fixed)

[PATCH] Add --enable-coverage configure option for gcov support

Reported by: pere@… Owned by: mapserverbugs
Priority: high Milestone:
Component: Build Problems Version: 4.4
Severity: minor Keywords:
Cc:

Description

Please make it it easier to compile mapserver with source code
coverage reporting.  The following patch add a new configure argument
--enable-coverate, making sure the needed GCC flags are used at
build time.

Index: configure.in
===================================================================
RCS file: /data2/cvsroot/mapserver/configure.in,v
retrieving revision 1.118
diff -u -3 -p -u -r1.118 configure.in
--- configure.in        6 Feb 2005 18:39:55 -0000       1.118
+++ configure.in        12 Feb 2005 20:34:02 -0000
@@ -1773,2 +1773,2 @@ fi
 AC_SUBST(DEBUG_FLAGS, $DEBUG_FLAGS)
 ALL_ENABLED="$DEBUG_FLAGS $ALL_ENABLED"

+AC_ARG_ENABLE(coverage,
+[  --enable-coverage       Enable coverage testing],
+[CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"])
+
 dnl ---------------------------------------------------------------------
 dnl PHP/MapScript module options
 dnl ---------------------------------------------------------------------

Change History (2)

comment:1 by dmorissette, 19 years ago

Resolution: fixed
Status: newclosed

comment:2 by dmorissette, 19 years ago

Done in 4.5 CVS.
Note: See TracTickets for help on using tickets.