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

Fix #612, Update coverage compile/link flag options #613

Merged

Conversation

jphickey
Copy link
Contributor

Describe the contribution

OSAL now sets these as UT_COVERAGE_COMPILE_FLAGS, UT_COVERAGE_LINK_FLAGS.
Building and linking the UT executable needs a corresponding update.

Fixes #612

Testing performed
Build with ENABLE_UNIT_TESTS=TRUE and confirm that all unit tests are building

Expected behavior changes
Coverage data (make lcov) now includes the CFE core code again

System(s) tested on
Ubuntu 18.04 LTS 64 bit

Additional context
Similar change will be needed in apps (forthcoming)

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

OSAL now sets these as UT_COVERAGE_COMPILE_FLAGS, UT_COVERAGE_LINK_FLAGS.
Building and linking the UT executable needs a corresponding update.
@skliper
Copy link
Contributor

skliper commented Apr 14, 2020

@astrogeco requesting FASTTRACK

@skliper skliper added this to the 6.8.0 milestone Apr 14, 2020
@skliper skliper added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Apr 14, 2020
@jphickey
Copy link
Contributor Author

See Also:
nasa/sample_app#57
nasa/sample_lib#20

Perhaps as a future enhancement the CFE should provide a cmake function to create a ut executable rather than having this logic in each of them.

@astrogeco
Copy link
Contributor

CCB FastTrack - APPROVED

@astrogeco astrogeco removed the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Apr 14, 2020
@astrogeco astrogeco changed the base branch from master to integration-candidate April 15, 2020 13:33
@astrogeco astrogeco merged commit 1eb380c into nasa:integration-candidate Apr 15, 2020
@jphickey jphickey deleted the fix-612-ut-coverage-flags branch May 1, 2020 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unit tests need to link with UT_COVERAGE_COMPILE_FLAGS/UT_COVERAGE_LINK_FLAGS
3 participants