diff options
author | Ronny Chevalier <chevalier.ronny@gmail.com> | 2014-11-08 22:33:02 +0100 |
---|---|---|
committer | Ronny Chevalier <chevalier.ronny@gmail.com> | 2014-11-08 22:48:17 +0100 |
commit | 5445c7a002f885a16fe43e90bd33594496efdad8 (patch) | |
tree | 923d350a7475a62a7d65ddad9aa8c9f5f5b28c7e | |
parent | 8444e49c99352959d8b453b32c98d455c4960f4e (diff) |
build-sys: do not include tests in code coverage
-rw-r--r-- | Makefile.am | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 416e4d3498..2bb1f02f88 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 |