-
Notifications
You must be signed in to change notification settings - Fork 21
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
Conversation
a00bf18
to
09d5ff7
Compare
NOTE: force-pushed to fix a comment. No substantive change. |
There was a problem hiding this 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?
CCB 20200122 - Discussed, scoping is lower priority than standard compliance, but preference is to test via available mechanisms (not accessing internals). |
09d5ff7
to
9d42bf2
Compare
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.
9d42bf2
to
b734bca
Compare
Latest push rebases to "master" and removes wrappers used to access the static fields. |
CCB 20200318 - Check if there's any 6.6->6.7 changes. Otherwise Approved. |
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