Add support for coverage reports with lcov

Patch by Patrick Hulin, bug #501057.
This commit is contained in:
Matthias Clasen
2010-06-20 22:46:47 -04:00
parent bad7f1e54f
commit cca48bd5b9
4 changed files with 110 additions and 2 deletions

View File

@@ -255,10 +255,14 @@ How to compile GLib itself
<arg>--disable-dtrace</arg>
<arg>--enable-dtrace</arg>
</group>
<group>
<group>
<arg>--disable-systemtap</arg>
<arg>--enable-systemtap</arg>
</group>
<group>
<arg>--enable-gcov</arg>
<arg>--disable-gcov</arg>
</group>
<group>
<arg>--with-runtime-libdir=RELPATH</arg>
</group>
@@ -605,6 +609,19 @@ How to compile GLib itself
</para>
</formalpara>
<formalpara>
<title><systemitem>--enable-gcov</systemitem> and
<systemitem>--disable-gcov</systemitem></title>
<para>
Enable the generation of coverage reports for the GLib tests.
This requires the lcov frontend to gcov from the
<ulink url="http://ltp.sourcforge.net">Linux Test Project</ulink>.
To generate a coverage report, use the lcov make target. The
report is placed in the <filename>glib-lcov</filename> directory.
</para>
</formalpara>
<formalpara>
<title><systemitem>--with-runtime-libdir=RELPATH</systemitem></title>