chiark / gitweb /
build-sys: do not include tests in code coverage
authorRonny Chevalier <chevalier.ronny@gmail.com>
Sat, 8 Nov 2014 21:33:02 +0000 (22:33 +0100)
committerRonny Chevalier <chevalier.ronny@gmail.com>
Sat, 8 Nov 2014 21:48:17 +0000 (22:48 +0100)
Makefile.am

index 416e4d3..2bb1f02 100644 (file)
@@ -1893,7 +1893,8 @@ lcov-report:
        $(MKDIR_P) $(coverage_dir)
        lcov $(coverage_opts) --compat-libtool --capture --no-external \
                | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
-       genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
+       lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
+       genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
        @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
 
 # lcov doesn't work properly with vpath builds, make sure that bad