[asterisk-commits] russell: branch 1.8 r279953 - in /branches/1.8: ./ apps/ bridges/ cdr/ cel/ c...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jul 27 16:16:09 CDT 2010
Author: russell
Date: Tue Jul 27 16:16:05 2010
New Revision: 279953
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=279953
Log:
Add --enable-coverage option to configure script.
This option enables the proper compiler flags for tracking code coverage, which
is useful along side automated testing.
Modified:
branches/1.8/Makefile.rules
branches/1.8/apps/ (props changed)
branches/1.8/bridges/ (props changed)
branches/1.8/cdr/ (props changed)
branches/1.8/cel/ (props changed)
branches/1.8/channels/ (props changed)
branches/1.8/channels/sip/ (props changed)
branches/1.8/codecs/ (props changed)
branches/1.8/codecs/g722/ (props changed)
branches/1.8/codecs/gsm/src/ (props changed)
branches/1.8/codecs/lpc10/ (props changed)
branches/1.8/configure
branches/1.8/configure.ac
branches/1.8/formats/ (props changed)
branches/1.8/funcs/ (props changed)
branches/1.8/main/ (props changed)
branches/1.8/main/db1-ast/btree/ (props changed)
branches/1.8/main/db1-ast/db/ (props changed)
branches/1.8/main/db1-ast/hash/ (props changed)
branches/1.8/main/db1-ast/mpool/ (props changed)
branches/1.8/main/db1-ast/recno/ (props changed)
branches/1.8/main/editline/ (props changed)
branches/1.8/main/editline/np/ (props changed)
branches/1.8/main/stdtime/ (props changed)
branches/1.8/makeopts.in
branches/1.8/pbx/ (props changed)
branches/1.8/res/ (props changed)
branches/1.8/res/ael/ (props changed)
branches/1.8/res/ais/ (props changed)
branches/1.8/res/snmp/ (props changed)
branches/1.8/utils/ (props changed)
Modified: branches/1.8/Makefile.rules
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/Makefile.rules?view=diff&rev=279953&r1=279952&r2=279953
==============================================================================
--- branches/1.8/Makefile.rules (original)
+++ branches/1.8/Makefile.rules Tue Jul 27 16:16:05 2010
@@ -43,10 +43,15 @@
endif
endif
-ifeq ($(findstring DONT_OPTIMIZE,$(MENUSELECT_CFLAGS)),)
+ifeq ($(findstring DONT_OPTIMIZE,$(MENUSELECT_CFLAGS))$(AST_CODE_COVERAGE),no)
_ASTCFLAGS+=$(OPTIMIZE)
else
_ASTCFLAGS+=-O0
+endif
+
+ifeq ($(AST_CODE_COVERAGE),yes)
+ _ASTCFLAGS+=-ftest-coverage -fprofile-arcs
+ _ASTLDFLAGS+=-ftest-coverage -fprofile-arcs
endif
ifeq ($(findstring $(CONFIG_CFLAGS),$(_ASTCFLAGS)),)
Propchange: branches/1.8/apps/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -9,3 +9,5 @@
*.so
*.exports
modules.link
+*.gcno
+*.gcda
Propchange: branches/1.8/bridges/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -9,4 +9,5 @@
*.so
*.exports
modules.link
-
+*.gcno
+*.gcda
Propchange: branches/1.8/cdr/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -9,3 +9,5 @@
*.so
*.exports
modules.link
+*.gcno
+*.gcda
Propchange: branches/1.8/cel/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -9,3 +9,5 @@
*.so
*.exports
modules.link
+*.gcno
+*.gcda
Propchange: branches/1.8/channels/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -11,3 +11,5 @@
*.so
*.exports
modules.link
+*.gcno
+*.gcda
Propchange: branches/1.8/channels/sip/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -1,1 +1,3 @@
*.i
+*.gcno
+*.gcda
Propchange: branches/1.8/codecs/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -9,3 +9,5 @@
*.so
*.exports
modules.link
+*.gcno
+*.gcda
Propchange: branches/1.8/codecs/g722/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -2,4 +2,5 @@
*.s
libg722.a
*.d
-
+*.gcno
+*.gcda
Propchange: branches/1.8/codecs/gsm/src/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -1,1 +1,3 @@
*.i
+*.gcno
+*.gcda
Propchange: branches/1.8/codecs/lpc10/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -3,3 +3,5 @@
*.d
*.a
*.so
+*.gcno
+*.gcda
Modified: branches/1.8/configure.ac
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/configure.ac?view=diff&rev=279953&r1=279952&r2=279953
==============================================================================
--- branches/1.8/configure.ac (original)
+++ branches/1.8/configure.ac Tue Jul 27 16:16:05 2010
@@ -287,6 +287,17 @@
esac])
AC_SUBST(NOISY_BUILD)
AC_SUBST(AST_DEVMODE)
+
+AST_CODE_COVERAGE=no
+AC_ARG_ENABLE([coverage],
+ [AS_HELP_STRING([--enable-coverage],
+ [Turn on code coverage tracking (for gcov)])],
+ [case "${enableval}" in
+ y|ye|yes) AST_CODE_COVERAGE=yes ;;
+ n|no) AST_CODE_COVERAGE=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-coverage) ;;
+ esac])
+AC_SUBST(AST_CODE_COVERAGE)
# AST_EXT_LIB_SETUP is used to tell configure to handle variables for
# various packages.
Propchange: branches/1.8/formats/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -9,3 +9,5 @@
*.so
*.exports
modules.link
+*.gcno
+*.gcda
Propchange: branches/1.8/funcs/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -9,3 +9,5 @@
*.so
*.exports
modules.link
+*.gcno
+*.gcda
Propchange: branches/1.8/main/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -4,3 +4,5 @@
*.exports
asterisk
version.c
+*.gcno
+*.gcda
Propchange: branches/1.8/main/db1-ast/btree/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -1,1 +1,3 @@
*.i
+*.gcno
+*.gcda
Propchange: branches/1.8/main/db1-ast/db/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -1,1 +1,3 @@
*.i
+*.gcno
+*.gcda
Propchange: branches/1.8/main/db1-ast/hash/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -1,1 +1,3 @@
*.i
+*.gcno
+*.gcda
Propchange: branches/1.8/main/db1-ast/mpool/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -1,1 +1,3 @@
*.i
+*.gcno
+*.gcda
Propchange: branches/1.8/main/db1-ast/recno/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -1,1 +1,3 @@
*.i
+*.gcno
+*.gcda
Propchange: branches/1.8/main/editline/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -26,3 +26,5 @@
cygdef.h
*.a
*.so
+*.gcno
+*.gcda
Propchange: branches/1.8/main/editline/np/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -3,3 +3,5 @@
strlcpy.o_a
strlcat.o_a
fgetln.o_a
+*.gcno
+*.gcda
Propchange: branches/1.8/main/stdtime/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -2,3 +2,5 @@
*.a
*.so
*.i
+*.gcno
+*.gcda
Modified: branches/1.8/makeopts.in
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/makeopts.in?view=diff&rev=279953&r1=279952&r2=279953
==============================================================================
--- branches/1.8/makeopts.in (original)
+++ branches/1.8/makeopts.in Tue Jul 27 16:16:05 2010
@@ -79,6 +79,8 @@
AST_DEVMODE=@AST_DEVMODE@
NOISY_BUILD=@NOISY_BUILD@
+AST_CODE_COVERAGE=@AST_CODE_COVERAGE@
+
AST_DECLARATION_AFTER_STATEMENT=@AST_DECLARATION_AFTER_STATEMENT@
AST_NO_STRICT_OVERFLOW=@AST_NO_STRICT_OVERFLOW@
AST_SHADOW_WARNINGS=@AST_SHADOW_WARNINGS@
Propchange: branches/1.8/pbx/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -9,3 +9,5 @@
*.so
*.exports
modules.link
+*.gcno
+*.gcda
Propchange: branches/1.8/res/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -9,3 +9,5 @@
*.so
*.exports
modules.link
+*.gcno
+*.gcda
Propchange: branches/1.8/res/ael/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -1,1 +1,3 @@
*.i
+*.gcno
+*.gcda
Propchange: branches/1.8/res/ais/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -1,1 +1,3 @@
*.i
+*.gcno
+*.gcda
Propchange: branches/1.8/res/snmp/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -1,1 +1,3 @@
*.i
+*.gcno
+*.gcda
Propchange: branches/1.8/utils/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jul 27 16:16:05 2010
@@ -29,3 +29,5 @@
utils.c
astcanary
refcounter
+*.gcno
+*.gcda
More information about the asterisk-commits
mailing list