diff options
author | Allan LeSage <allan.lesage@canonical.com> | 2013-11-21 19:14:21 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2013-11-21 19:14:21 +0000 |
commit | 875ee4d733ce751fcd8d974a32c4bfdebbe501a3 (patch) | |
tree | 406500af69bd6555eb4e4dc63e3711bd341bb6b4 /configure.ac | |
parent | f90c7c21d0e82779356eaa8ae471703cda45d7cc (diff) | |
parent | bf2aab363e93263b1615f1811524fb22b14bf34b (diff) | |
download | ayatana-indicator-keyboard-875ee4d733ce751fcd8d974a32c4bfdebbe501a3.tar.gz ayatana-indicator-keyboard-875ee4d733ce751fcd8d974a32c4bfdebbe501a3.tar.bz2 ayatana-indicator-keyboard-875ee4d733ce751fcd8d974a32c4bfdebbe501a3.zip |
Add gcov coverage tooling; use ./autogen.sh --enable-gcov and then make coverage-html to see a report of what's covered. You can read about the rationale in this old blog post: http://qualityhour.wordpress.com/2012/01/29/test-coverage-tutorial-for-cc-autotools-projects/ .
Approved by William Hua, PS Jenkins bot.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index ccd69620..5a333009 100644 --- a/configure.ac +++ b/configure.ac @@ -82,6 +82,15 @@ PKG_CHECK_MODULES([BAMF], [libbamf3]) AC_SUBST([BAMF_CFLAGS]) AC_SUBST([BAMF_LIBS]) +m4_include([m4/gcov.m4]) +AC_TDD_GCOV +AM_CONDITIONAL([HAVE_GCOV], [test "x$ac_cv_check_gcov" = xyes]) +AM_CONDITIONAL([HAVE_LCOV], [test "x$ac_cv_check_lcov" = xyes]) +AM_CONDITIONAL([HAVE_GCOVR], [test "x$ac_cv_check_gcovr" = xyes]) +AC_SUBST(COVERAGE_CFLAGS) +AC_SUBST(COVERAGE_CXXFLAGS) +AC_SUBST(COVERAGE_LDFLAGS) + AC_CONFIG_FILES([Makefile data/Makefile lib/Makefile |