Add test coverage and generate report with lcov

Enable coverage with --enable-coverage.
"make coverage" will create the report locally,
"make coverage-sync" will upload the report to
http://www.freedesktop.org/software/systemd/coverage/.

Requires lcov version 1.10 to handle naming in systemd and to
use the --no-external option.

[zj: make the coverage at least generate something with
     separate build dir, simplify rules a bit: all errors
     are mine. ]
This commit is contained in:
Thomas H.P. Andersen
2013-07-13 21:56:33 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent 7aa4fa34f7
commit 6aea6d10f4
4 changed files with 65 additions and 0 deletions
+2
View File
@@ -4,3 +4,5 @@ load-fragment-gperf.gperf
org.freedesktop.systemd1.policy.in
org.freedesktop.systemd1.policy
99-systemd.rules
*.gcno
*.gcda