|
@@ -254,6 +254,16 @@ AC_TRY_COMPILE([
|
|
|
AC_DEFINE(HAVE_SA_LEN, 1, [Define to 1 if sockaddr has a sa_len member, and corresponding sin_len and sun_len])],
|
|
|
AC_MSG_RESULT(no))
|
|
|
|
|
|
+AC_ARG_WITH(pycoverage,
|
|
|
+[ --with-pycoverage[=PROGRAM] enable python code coverage using the specified coverage], pycoverage="$withval", pycoverage="no")
|
|
|
+if test "$pycoverage" != "no" ; then
|
|
|
+ PYCOVERAGE="coverage run --branch --append"
|
|
|
+else
|
|
|
+ PYCOVERAGE="${PYTHON}"
|
|
|
+fi
|
|
|
+AM_CONDITIONAL(ENABLE_PYTHON_COVERAGE, test x$pycoverage != xno)
|
|
|
+AC_SUBST(PYCOVERAGE)
|
|
|
+
|
|
|
AC_ARG_WITH(lcov,
|
|
|
[ --with-lcov[=PROGRAM] enable gtest and coverage target using the specified lcov], lcov="$withval", lcov="no")
|
|
|
|
|
@@ -605,7 +615,7 @@ Features:
|
|
|
|
|
|
Developer:
|
|
|
Google Tests: $gtest_path
|
|
|
- Code Coverage: $USE_LCOV
|
|
|
+ C++ Code Coverage: $USE_LCOV
|
|
|
Generate Manuals: $enable_man
|
|
|
|
|
|
END
|