Merge lp:~fginther/nux/add-code-coverage into lp:nux
| Status: | Merged |
|---|---|
| Approved by: | Brandon Schaefer on 2012-12-08 |
| Approved revision: | 732 |
| Merged at revision: | 732 |
| Proposed branch: | lp:~fginther/nux/add-code-coverage |
| Merge into: | lp:nux |
| Diff against target: |
259 lines (+163/-6) 7 files modified
Makefile.am (+1/-0) Makefile.am.coverage (+49/-0) Nux/Makefile.am (+4/-2) NuxCore/Makefile.am (+4/-2) NuxGraphics/Makefile.am (+4/-2) configure.ac (+12/-0) m4/gcov.m4 (+89/-0) |
| To merge this branch: | bzr merge lp:~fginther/nux/add-code-coverage |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | Needs Fixing on 2012-12-07 | |
| Brandon Schaefer (community) | Approve on 2012-12-06 | ||
| Allan LeSage (community) | 2012-12-04 | Approve on 2012-12-05 | |
|
Review via email:
|
|||
Commit Message
Add code coverage reporting with coverage-html and coverage-xml targets.
Coverage reporting can be enabled with --enable-gcov.
Description of the Change
Add code coverage reporting with coverage-html and coverage-xml targets.
Coverage reporting can be enabled with --enable-gcov.
Testing:
- Built coverage targets and verified results.
- Built in pbuilder chroot with hooks to enable gcovr report.
| Brandon Schaefer (brandontschaefer) wrote : | # |
It looks good to me, but possibly making it easier to know you need to do a make check or make check-headless before running make coverage-html would be nice. Or possibly to check if no *.gcda files are found through an error message saying to run those commands.
Otherwise looks good to me :)
| Francis Ginther (fginther) wrote : | # |
> It looks good to me, but possibly making it easier to know you need to do a
> make check or make check-headless before running make coverage-html would be
> nice. Or possibly to check if no *.gcda files are found through an error
> message saying to run those commands.
>
> Otherwise looks good to me :)
Brandon, I added make check to the two main coverage targets to make it more intuitive for developers. This still allows our jenkins automation to run make check-headless via hook scripts instead of make check and collect the results with gcovr.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
| Martin Mrazik (mrazik) wrote : | # |
Sorry, Jenkins failure which should be fixed now -> reapproving.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
| Martin Mrazik (mrazik) wrote : | # |
It looks like Brandon did something weird in his branch and hence the conflict. I see some coverage related commits in bzr log --include-merged lp:nux ....
| Brandon Schaefer (brandontschaefer) wrote : | # |
What the heck...all I did was a bzr merge...check it out, then a bzr revert...then did my own thing and pushed the other branch. I don't see how this should carry any info with it...

* Teensy correction restores coverage for the NuxGraphics dir:
=== modified file 'NuxGraphics/ Makefile. am' Makefile. am 2012-12-04 19:36:00 +0000 Makefile. am 2012-12-05 15:32:28 +0000 GRAPHICS_ CFLAGS) \ _CFLAGS) \
--- NuxGraphics/
+++ NuxGraphics/
@@ -18,7 +18,7 @@
$(NUX_
$(MAINTAINER
$(GEIS_CFLAGS) \
- $(COVERAGE_FLAGS)
+ $(COVERAGE_CFLAGS)
libnux_ graphics_ @NUX_API_ VERSION@ _la_LIBADD = \ builddir) /NuxCore/ libnux- core-@NUX_ API_VERSION@ .la \
$(top_
* I'll attach a diff of what was necessary to get tests running FYI.
* We could consider splitting these tests into "small" and "large" but can take that up in another MP :) .
* The choice to make "make coverage-html" et.al. not depend on "make check" is evidently a considered one to which I don't object.
Approval contingent on the small correction above.