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 #1912, Update time tests to use bitmask check macros #1913

Merged

Conversation

jphickey
Copy link
Contributor

Describe the contribution
The new bitmask check macros provide more concise information the resulting log file. This updates the time test to use those macros when checking the state flags.

Testing performed
Build and run all tests, confirm log output is correct

Expected behavior changes
Improved test log file info

System(s) tested on
Ubuntu

Additional context
Note this also changes the code to call CFE_TIME_GetClockInfo() repeatedly, rather than storing in a local variable and checking that value. The intent is to clearly indicate in the log that this function was invoked, not just what its output was. This helps with tracking/confirming that the function is covered by the functional test.

This just reads a global so it should not be different in subsequent calls, unless the clock actually changes state during the test. But that was already a risk with the separate call to CFE_TIME_GetClockState, this does not really change that - and the flags are not really connected otherwise.

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

Replace UtAssert_UINT32_EQ with bitmask-specific check macros
@jphickey jphickey added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Aug 30, 2021
@zanzaben
Copy link
Contributor

Dependent on nasa/osal#1136

@astrogeco
Copy link
Contributor

Passes tests against integration-candidate bundle which includes the needed dependency
https://github.com/astrogeco/cFE/runs/3480325533?check_suite_focus=true

@astrogeco astrogeco merged commit 6aa555a into nasa:integration-candidate Sep 1, 2021
astrogeco added a commit to nasa/cFS that referenced this pull request Sep 1, 2021
@astrogeco astrogeco added CCB:Approved Indicates code review and approval by community CCB and removed CCB:Ready Ready for discussion at the Configuration Control Board (CCB) labels Sep 1, 2021
@astrogeco
Copy link
Contributor

CCB:2021-09-01 APPROVED

astrogeco added a commit to nasa/cFS that referenced this pull request Sep 1, 2021
**Combines**

nasa/cFE#1885,              v6.8.0-rc1+dev980
nasa/osal#1138,             v5.1.0-rc1+dev598
nasa/cFS-GroundSystem#195,  v2.2.0-rc1+dev63

**Includes**

*cFE*

nasa/cFE#1870, Add SB API test cases
nasa/cFE#1869, Add ES API test cases
nasa/cFE#1872, Add TBL API test cases
nasa/cFE#1871, Add FS API test cases
nasa/cFE#1860, Add Time Clock Test
nasa/cFE#1862, EVS coverage test
nasa/cFE#1876, SB test improvements
nasa/cFE#1865, CFE_TBL_Modified: Test CRC, updated flag
nasa/cFE#1881, Improve EVS code coverage
nasa/cFE#1877, add call to CFE_ES_ExitChildTask
nasa/cFE#1902, Incorrect OSAL Format in Users Guide Reference
nasa/cFE#1884, Improve FS coverage
nasa/cFE, Improve MSG branch coverage
nasa/cFE#1891, Improve resource ID branch coverage
nasa/cFE#1894, Improve SBR branch coverage
nasa/cFE#1896, Fix #1895, Improve TIME branch coverage
nasa/cFE#1904, Improve TBL code coverage
nasa/cFE#1864, Support custom PSP directory
nasa/cFE#1913, Update time tests to use bitmask check macros
nasa/cFE#1923, remove extra word in comment

*osal*

nasa/osal#1136, add bitmask assert macros

*cFS-GroundSystem*

nasa/cFS-GroundSystem#190, Fix #189, Virtualenv and Pipenv .gitignore support
nasa/cFS-GroundSystem#194, Fix doc, comment, and message typos

Co-authored-by: Jacob Hageman           <[email protected]>
Co-authored-by: Joseph Hickey           <[email protected]>
Co-authored-by: Alex Campbell           <[email protected]>
Co-authored-by: Ariel Adams             <[email protected]>
Co-authored-by: Jose F Martinez Pedraza <[email protected]>
Co-authored-by: Avi                     <[email protected]>
Co-authored-by: Paul                    <[email protected]>
@jphickey jphickey deleted the fix-1912-bitmask-checks branch September 13, 2021 16:50
@skliper skliper added this to the 7.0.0 milestone Sep 24, 2021
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 dependency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants