Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coverage Analysis #10696

Merged
merged 3 commits into from
Mar 4, 2019
Merged

Coverage Analysis #10696

merged 3 commits into from
Mar 4, 2019

Conversation

peterbarker
Copy link
Contributor

Replaces #10635

I had to make a couple of tweaks to get it working here.

I've done a very small amount of cleanup on the main patch.

I'd like to get this in before it bitrots.

Sample output is here: http://firmware.ardupilot.org/coverage/index.html

davidbuzz and others added 3 commits March 4, 2019 21:32
…h LCOV.

first, "apt install gcovr lcov" as new prerequisites
then run:
./waf configure --enable-gcov
./waf build --lcov-report
and after much waiting review the report in HTML format with your preferred browser eg:
firefox reports/lcov-report/index.html
The optimisation / compiler flags required slow things down somewhat
float<->integer conversion issues means this comes back imprecisely
@peterbarker peterbarker merged commit 792fbc6 into ArduPilot:master Mar 4, 2019
@peterbarker peterbarker deleted the coverage branch March 4, 2019 12:46
if not os.path.exists(REPORTS):
os.mkdir(REPORTS)

create_dir_command = "rm -rf " + lcov_report_dir
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't you use python command ?

@peterbarker
Copy link
Contributor Author

peterbarker commented Mar 5, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants