diff options
author | 2008-05-29 19:27:04 +0000 | |
---|---|---|
committer | 2008-05-29 19:27:04 +0000 | |
commit | aa2bb9c88ce0f575a62ac7f818ff12bc89500f27 (patch) | |
tree | 2585a6f157e43bd966375eaf90671633efcbd3da /Makefile.am | |
parent | Fix parted check & disable storage driver if daemon isn't present (diff) | |
download | libvirt-aa2bb9c88ce0f575a62ac7f818ff12bc89500f27.tar.gz libvirt-aa2bb9c88ce0f575a62ac7f818ff12bc89500f27.tar.bz2 libvirt-aa2bb9c88ce0f575a62ac7f818ff12bc89500f27.zip |
Switch to using lcov for code coverage repots
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/Makefile.am b/Makefile.am index 73552a487..e0aba2daa 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,10 @@ ## Process this file with automake to produce Makefile.in +LCOV = lcov +GENHTML = genhtml + SUBDIRS = gnulib/lib include src qemud proxy docs gnulib/tests \ - python tests po scripts + python tests po ACLOCAL_AMFLAGS = -I m4 -I gnulib/m4 @@ -28,24 +31,15 @@ tests: @(if [ "$(pythondir)" != "" ] ; then cd python ; \ $(MAKE) MAKEFLAGS+=--silent tests ; fi) -cov: cov-recursive cov-am +cov: clean-cov + mkdir $(top_builddir)/coverage + $(LCOV) -c -o $(top_builddir)/coverage/libvirt.info.tmp -d $(top_srcdir)/src -d $(top_srcdir)/qemud -d $(top_srcdir)/tests + $(LCOV) -r $(top_builddir)/coverage/libvirt.info.tmp -o $(top_builddir)/coverage/libvirt.info *usr* + rm $(top_builddir)/coverage/libvirt.info.tmp + $(GENHTML) -s -t "libvirt" -o $(top_builddir)/coverage --legend $(top_builddir)/coverage/libvirt.info clean-cov: rm -rf $(top_builddir)/coverage - cd src && $(MAKE) $(AM_MAKEFLAGS) clean-cov - -cov-recursive: - cd src && $(MAKE) $(AM_MAKEFLAGS) cov - -cov-am: - rm -rf $(top_builddir)/coverage - mkdir $(top_builddir)/coverage - perl $(srcdir)/scripts/coverage-report.pl src/*.cov > $(top_builddir)/coverage/index.xml - xsltproc $(srcdir)/scripts/coverage-report.xsl \ - $(top_builddir)/coverage/index.xml \ - > $(top_builddir)/coverage/index.html - for i in $(top_builddir)/src/*.gcov ; do o=`echo $$i | sed -e 's,$(top_builddir)/src,coverage,'` ; \ - perl $(srcdir)/scripts/coverage-report-entry.pl $$i > $$o.html ; done # disable this check distuninstallcheck: |