You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-commits@axis.apache.org by bi...@apache.org on 2018/01/07 01:31:39 UTC
svn commit: r1820432 - in /axis/axis2/c/core/trunk: axiom/configure.ac
configure.ac guththila/configure.ac neethi/configure.ac util/configure.ac
Author: billblough
Date: Sun Jan 7 01:31:39 2018
New Revision: 1820432
URL: http://svn.apache.org/viewvc?rev=1820432&view=rev
Log:
Optionally enable code coverage statistics
Add configure/makefile support for enabling gcov-based test coverage statistics
JIRA: AXIS2C-1689
Modified:
axis/axis2/c/core/trunk/axiom/configure.ac
axis/axis2/c/core/trunk/configure.ac
axis/axis2/c/core/trunk/guththila/configure.ac
axis/axis2/c/core/trunk/neethi/configure.ac
axis/axis2/c/core/trunk/util/configure.ac
Modified: axis/axis2/c/core/trunk/axiom/configure.ac
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/axiom/configure.ac?rev=1820432&r1=1820431&r2=1820432&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/axiom/configure.ac (original)
+++ axis/axis2/c/core/trunk/axiom/configure.ac Sun Jan 7 01:31:39 2018
@@ -154,6 +154,24 @@ AC_ARG_ENABLE(libxml2, [ --enable-libxm
AC_MSG_RESULT(no)
)
+AC_MSG_CHECKING(whether to enable code coverage statistics)
+AC_ARG_ENABLE(coverage, [ --enable-coverage enable code coverage statistics (default=no)],
+[ case "${enableval}" in
+ no)
+ AC_MSG_RESULT(no)
+ CFLAGS="$CFLAGS"
+ CPPFLAGS="$CPPFLAGS"
+ ;;
+ *)
+ AC_MSG_RESULT(yes)
+ CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
+ CPPFLAGS="$CPPFLAGS -fprofile-arcs -ftest-coverage"
+ ;;
+ esac ],[
+ AC_MSG_RESULT(no)
+ CFLAGS="$CFLAGS"
+ CPPFLAGS="$CPPFLAGS"]
+)
AC_MSG_CHECKING(whether to build tests)
AC_ARG_ENABLE(tests, [ --enable-tests build tests. default=no],
Modified: axis/axis2/c/core/trunk/configure.ac
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/configure.ac?rev=1820432&r1=1820431&r2=1820432&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/configure.ac (original)
+++ axis/axis2/c/core/trunk/configure.ac Sun Jan 7 01:31:39 2018
@@ -418,6 +418,26 @@ AC_ARG_ENABLE(trace, [ --enable-trace
CPPFLAGS="$CPPFLAGS"
)
+AC_MSG_CHECKING(whether to enable code coverage statistics)
+AC_ARG_ENABLE(coverage, [ --enable-coverage
+ enable code coverage statistics (default=no)],
+[ case "${enableval}" in
+ no)
+ AC_MSG_RESULT(no)
+ CFLAGS="$CFLAGS"
+ CPPFLAGS="$CPPFLAGS"
+ ;;
+ *)
+ AC_MSG_RESULT(yes)
+ CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
+ CPPFLAGS="$CPPFLAGS -fprofile-arcs -ftest-coverage"
+ ;;
+ esac ],[
+ AC_MSG_RESULT(no)
+ CFLAGS="$CFLAGS"
+ CPPFLAGS="$CPPFLAGS"]
+)
+
AC_MSG_CHECKING(whether to enable multi threading)
AC_ARG_ENABLE(multi-thread, [ --enable-multi-thread
enable multi threaded axis2 worker (default=yes)],
Modified: axis/axis2/c/core/trunk/guththila/configure.ac
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/guththila/configure.ac?rev=1820432&r1=1820431&r2=1820432&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/guththila/configure.ac (original)
+++ axis/axis2/c/core/trunk/guththila/configure.ac Sun Jan 7 01:31:39 2018
@@ -67,6 +67,26 @@ if test "$GCC" = "yes"; then
CFLAGS="$CFLAGS -ansi -ggdb3 -Wall -Wno-implicit-function-declaration "
fi
+AC_MSG_CHECKING(whether to enable code coverage statistics)
+AC_ARG_ENABLE(coverage, [ --enable-coverage enable code coverage statistics (default=no)],
+[ case "${enableval}" in
+ no)
+ AC_MSG_RESULT(no)
+ CFLAGS="$CFLAGS"
+ CPPFLAGS="$CPPFLAGS"
+ ;;
+ *)
+ AC_MSG_RESULT(yes)
+ CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
+ CPPFLAGS="$CPPFLAGS -fprofile-arcs -ftest-coverage"
+ ;;
+ esac ],[
+ AC_MSG_RESULT(no)
+ CFLAGS="$CFLAGS"
+ CPPFLAGS="$CPPFLAGS"]
+)
+
+
dnl Checks for header files.
AC_HEADER_STDC
Modified: axis/axis2/c/core/trunk/neethi/configure.ac
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/neethi/configure.ac?rev=1820432&r1=1820431&r2=1820432&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/neethi/configure.ac (original)
+++ axis/axis2/c/core/trunk/neethi/configure.ac Sun Jan 7 01:31:39 2018
@@ -109,6 +109,28 @@ AC_ARG_ENABLE(libxml2, [ --enable-libxm
AC_MSG_RESULT(no)
)
+
+AC_MSG_CHECKING(whether to enable code coverage statistics)
+AC_ARG_ENABLE(coverage, [ --enable-coverage
+ enable code coverage statistics (default=no)],
+[ case "${enableval}" in
+ no)
+ AC_MSG_RESULT(no)
+ CFLAGS="$CFLAGS"
+ CPPFLAGS="$CPPFLAGS"
+ ;;
+ *)
+ AC_MSG_RESULT(yes)
+ CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
+ CPPFLAGS="$CPPFLAGS -fprofile-arcs -ftest-coverage"
+ ;;
+ esac ],[
+ AC_MSG_RESULT(no)
+ CFLAGS="$CFLAGS"
+ CPPFLAGS="$CPPFLAGS"]
+)
+
+
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdio.h stdlib.h string.h])
Modified: axis/axis2/c/core/trunk/util/configure.ac
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/util/configure.ac?rev=1820432&r1=1820431&r2=1820432&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/util/configure.ac (original)
+++ axis/axis2/c/core/trunk/util/configure.ac Sun Jan 7 01:31:39 2018
@@ -217,6 +217,27 @@ AC_ARG_ENABLE(trace, [ --enable-trace
CFLAGS="$CFLAGS"
)
+AC_MSG_CHECKING(whether to enable code coverage statistics)
+AC_ARG_ENABLE(coverage, [ --enable-coverage
+ enable code coverage statistics (default=no)],
+[ case "${enableval}" in
+ no)
+ AC_MSG_RESULT(no)
+ CFLAGS="$CFLAGS"
+ CPPFLAGS="$CPPFLAGS"
+ ;;
+ *)
+ AC_MSG_RESULT(yes)
+ CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
+ CPPFLAGS="$CPPFLAGS -fprofile-arcs -ftest-coverage"
+ ;;
+ esac ],[
+ AC_MSG_RESULT(no)
+ CFLAGS="$CFLAGS"
+ CPPFLAGS="$CPPFLAGS"]
+)
+
+
AC_MSG_CHECKING(whether to build tests)
AC_ARG_ENABLE(tests, [ --enable-tests build tests. default=yes],
[ case "${enableval}" in