Bug 63868 - Add --enable-coverage option for building with code coverage
Summary: Add --enable-coverage option for building with code coverage
Status: RESOLVED FIXED
Alias: None
Product: accountsservice
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: Matthias Clasen
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-24 09:05 UTC by Stef Walter
Modified: 2013-10-15 20:19 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Add --enable-coverage option for building with code coverage (2.66 KB, patch)
2013-04-24 09:05 UTC, Stef Walter
Details | Splinter Review
Add --enable-coverage option for building with code coverage (2.74 KB, patch)
2013-04-24 09:17 UTC, Stef Walter
Details | Splinter Review

Description Stef Walter 2013-04-24 09:05:52 UTC
This patch adds --enable-coverage to configure which builds with gcov
code coverage so we can use tools like 'git coverage' when reviewing
patches.

Not using the GNOME_CODE_COVERAGE stuff as that's all about lcov and
producing reports after unit testing.
Comment 1 Stef Walter 2013-04-24 09:05:55 UTC
Created attachment 78409 [details] [review]
Add --enable-coverage option for building with code coverage

Also clean coverage files on 'make clean'
Comment 2 Stef Walter 2013-04-24 09:17:16 UTC
Created attachment 78414 [details] [review]
Add --enable-coverage option for building with code coverage

Also clean coverage files on 'make clean'
Comment 3 Stef Walter 2013-04-24 09:17:34 UTC
Second patch avoids: /usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
Comment 4 Matthias Clasen 2013-05-11 19:27:30 UTC
Given that there are no tests here that could provide coverage, what use do you plan to make of this ?
Comment 5 Stef Walter 2013-05-14 08:29:16 UTC
(In reply to comment #4)
> Given that there are no tests here that could provide coverage, what use do
> you plan to make of this ?

After applying a patch, you run accounts-daemon, try to exercise the running code. After you're done 'git coverage HEAD~1' tells you which parts you exercised and which you missed. It doesn't matter whether it was exercised via tests or manually.
Comment 6 Ray Strode [halfline] 2013-10-15 20:19:30 UTC
pushed


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.