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 #9, Unit test for SAMPLE lib #11

Merged
merged 1 commit into from
Mar 23, 2020

Conversation

jphickey
Copy link
Contributor

Describe the contribution
Fixes #9

Implements a coverage test for sample_lib code as well as a stub library to facilitate unit test of external code that calls functions within sample_lib.

Testing performed
Build with SIMULATION=native ENABLE_UNIT_TESTS=TRUE
Confirm normal CFE operation is unaffected
Confirm unit tests all pass, including new test of "sample_lib"
Confirm "lcov" report now includes sample_lib, and coverage is 100%

Expected behavior changes
This adds a new test for "sample_lib" which is part of the make test target, and the line coverage reports now include sample_lib.

System(s) tested on:
Ubuntu 18.04 LTS 64-bit

Additional context
The coverage test cases are written assuming that previous pull request #10 is already merged. That is, they exercise/test the logic that was added in this. Therefore this commit is a child of the commit for the previous pull request.

Contributor Info
Joseph Hickey, Vantage Systems, Inc.

Community contributors
You must attach a signed CLA (required for acceptance) or reference one already submitted

@jphickey jphickey force-pushed the fix-9-sample-lib-unit-test branch from a00bf18 to 09d5ff7 Compare November 21, 2019 22:01
@jphickey
Copy link
Contributor Author

NOTE: force-pushed to fix a comment. No substantive change.

Copy link
Contributor

@skliper skliper left a comment

Choose a reason for hiding this comment

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

Is it possible to do this without #include *.c?

@skliper
Copy link
Contributor

skliper commented Jan 22, 2020

CCB 20200122 - Discussed, scoping is lower priority than standard compliance, but preference is to test via available mechanisms (not accessing internals).

@astrogeco astrogeco added CCB:Ready PR or Issue is ready for discussion at the Configuration Control Board (CCB) CCB:Ignore PR or Issue is NOT ready for discussion. Has open actions. Will be re-examined at by next CCB. and removed CCB:Ready PR or Issue is ready for discussion at the Configuration Control Board (CCB) labels Feb 11, 2020
@astrogeco astrogeco removed the CCB:Ignore PR or Issue is NOT ready for discussion. Has open actions. Will be re-examined at by next CCB. label Feb 19, 2020
@jphickey jphickey force-pushed the fix-9-sample-lib-unit-test branch from 09d5ff7 to 9d42bf2 Compare March 13, 2020 16:55
Implements a coverage test for sample_lib code as well
as a stub library to facilitate unit test of external
code that calls functions within sample_lib.
@jphickey jphickey force-pushed the fix-9-sample-lib-unit-test branch from 9d42bf2 to b734bca Compare March 13, 2020 17:29
@jphickey
Copy link
Contributor Author

Latest push rebases to "master" and removes wrappers used to access the static fields.

@jphickey jphickey requested a review from skliper March 13, 2020 17:45
@jphickey jphickey added CCB:Ready PR or Issue is ready for discussion at the Configuration Control Board (CCB) enhancement New feature or request labels Mar 13, 2020
@astrogeco astrogeco changed the title Unit test for SAMPLE lib Fix #9, Unit test for SAMPLE lib Mar 18, 2020
@astrogeco
Copy link
Contributor

CCB 20200318 - Check if there's any 6.6->6.7 changes. Otherwise Approved.

@astrogeco astrogeco added CCB - 20200318 and removed CCB:Ready PR or Issue is ready for discussion at the Configuration Control Board (CCB) labels Mar 18, 2020
@astrogeco astrogeco dismissed skliper’s stale review March 18, 2020 21:07

Addressed with force push

@astrogeco astrogeco added CCB:Approved Indicates code review and approval by community CCB IC - 20200318 labels Mar 18, 2020
@astrogeco astrogeco changed the base branch from master to integration-candidate March 23, 2020 16:57
@astrogeco astrogeco merged commit 615c2a9 into integration-candidate Mar 23, 2020
@skliper skliper deleted the fix-9-sample-lib-unit-test branch April 2, 2020 17:51
@skliper skliper added this to the 1.2.0 milestone Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CCB:Approved Indicates code review and approval by community CCB enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add unit test example for sample_lib
3 participants