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

enable code coverage data collection #35

Merged
merged 3 commits into from Feb 15, 2019
Merged

Conversation

flihp
Copy link
Contributor

@flihp flihp commented Feb 15, 2019

No description provided.

This relies on the AX_CODE_COVERAGE macro from the autoconf-archive
project. We explicitly only collect metrics for code under $(srcdir)/src
as this is the only code shipped in the library. Everything else is test
or example code.

Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
We only collect code coverage when building with GCC. This requires a
new environment variable to hold additional options passed to the
configure script (--enable-code-coverage). Also we can't use the
distcheck target to collect code coverage metrics so we add yet another
environment variable so that we can use 'check' with gcc. To collect
these metrics we need lcov installed as well. Finally we upload metrics
to coveralls only if CC is gcc.

Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
This is required for code-coverage.

Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
@flihp flihp merged commit 520bf19 into tpm2-software:master Feb 15, 2019
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

1 participant