Opened 16 years ago
Closed 13 years ago
#283 closed task (fixed)
Automated coverage testing
Reported by: | Olly Betts | Owned by: | Richard Boulton |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Test Suite | Version: | |
Severity: | normal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Operating System: | other |
Description
We should have automated coverage testing, to help use improve the coverage of our testsuite.
Suggested approach:
- Use buildbot to automatically generate a suitably instrumented build from SVN with the right options:
-fprofile-arcs -ftest-coverage
and probably-O0
- Use lcov or something similar to run the testsuite under gcov and generate HTML of the results. Probably running this as part of the buildbot job is easiest.
- We ideally want to keep a record of some appropriate "summary statistics" so we can graph how we're doing over time. Hopefully there is a suitable utility which will produce suitable stats and we just need to note these for each run along with the SVN rev and branch URL. Failing that, perhaps we can parse them from the HTML output or something.
Assigning to Richard for now, as he's best able to do the buildbot part at least.
Change History (3)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
OK, just found that doing a static build fixes this:
./configure CXXFLAGS='-O0 -fprofile-arcs -ftest-coverage' --enable-quiet --enable-maintainer-mode --disable-shared
comment:3 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I've now added this to buildbot.
Note:
See TracTickets
for help on using tickets.
OK, I gave this a go on atreus, and it failed:
I used
--disable-visibility
hoping it would fix the error I got, but it doesn't help. The relevant part of the output is:Google finds a thread with this error in, but it seems unrelated to what we're doing here...
I also tried with
-O1
and that doesn't seem to help.