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 #1689, Add time arithmetic functional tests #1715

Conversation

nmullane
Copy link
Contributor

Describe the contribution
A clear and concise description of what the contribution is.

Testing performed
Steps taken to test the contribution:

  1. Build CFE and run all functional tests

Expected behavior changes
A clear and concise description of how this contribution will change behavior and level of impact.

  • No impact to behavior

System(s) tested on

  • Hardware: PC
  • OS: Ubuntu 20.04

Contributor Info - All information REQUIRED for consideration of pull request
Niall Mullane - GSFC 582 Intern

@astrogeco astrogeco requested a review from zanzaben July 27, 2021 13:53
@astrogeco
Copy link
Contributor

@nmullane check format. Might want to enable actions on your fork to catch these

@nmullane nmullane force-pushed the fix1689-time-arithmetic-functional-tests branch from 5aea2f6 to a349226 Compare July 27, 2021 14:06
CFE_TIME_SysTime_t time2 = {0, 1000};
CFE_TIME_SysTime_t timeAdded = CFE_TIME_Add(time1, time2);

UtAssert_UINT32_EQ(timeAdded.Seconds, 1000);
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of checking if it equqals 1000, you should create a timeExpected var and compare to that.

modules/cfe_testcase/src/cfe_test.c Show resolved Hide resolved
@nmullane nmullane marked this pull request as ready for review July 27, 2021 17:33
@nmullane nmullane force-pushed the fix1689-time-arithmetic-functional-tests branch from 309ac45 to ced6110 Compare July 27, 2021 17:54
Add tests for
* CFE_TIME_Add
* CFE_TIME_Subtract
* CFE_TIME_Compare
@nmullane nmullane force-pushed the fix1689-time-arithmetic-functional-tests branch from ced6110 to b277a2c Compare July 27, 2021 17:55
@astrogeco astrogeco added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Jul 28, 2021
@astrogeco astrogeco changed the base branch from main to integration-candidate July 28, 2021 16:44
@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 Jul 28, 2021
@astrogeco
Copy link
Contributor

CCB:2021-07-28 APPROVED

@astrogeco astrogeco merged commit e298961 into nasa:integration-candidate Jul 28, 2021
astrogeco added a commit to nasa/cFS that referenced this pull request Jul 28, 2021
nasa/cFE#1720, Requirements update for Caelum
nasa/cFE#1721, Add null check to CFE_ES_TaskID_ToIndex.
nasa/cFE#1719, scrub command documentation
nasa/cFE#1715, Add time arithmetic functional tests
astrogeco added a commit to nasa/cFS that referenced this pull request Jul 29, 2021
Combines:

nasa/cFE#1701, v6.8.0-rc1+dev789
nasa/osal#1116, v5.1.0-rc1+dev578
nasa/cFS-GroundSystem#192, v2.2.0-rc1+dev58

Includes:

**cFE**

nasa/cFE#1699, correct return code check
nasa/cFE#1700, documentation for FS APIs that return OSAL codes
nasa/cFE#1695, Adding coverage tests for cfe_es_apps.c
nasa/cFE#1673, Add File Utility Functional Tests.
nasa/cFE#1711, Add custom epoch support to TIME UT
nasa/cFE#1720, Requirements update for Caelum
nasa/cFE#1721, Add null check to CFE_ES_TaskID_ToIndex.
nasa/cFE#1719, scrub command documentation
nasa/cFE#1715, Add time arithmetic functional tests
nasa/cFE#1704, update docs for CFE_FS_BackgroundFileDumpRequest
nasa/cFE#1706, correct return code mismatches

**osal**

nasa/osal#1114, Add unit test branch coverage

**cFS-GroundSystem**

nasa/cFS-GroundSystem#185, Update tlm for ES Blockstats/memstats and TBL HK
nasa/cFS-GroundSystem#188, * might be referenced before assignment

Co-authored-by: Jacob Hageman <skliper@users.noreply.github.com>
Co-authored-by: Joseph Hickey <jphickey@users.noreply.github.com>
Co-authored-by: Alex Campbell <zanzaben@users.noreply.github.com>
Co-authored-by: Jose F Martinez Pedraza <pepepr08@users.noreply.github.com>
Co-authored-by: Niall Mullane <nmullane@users.noreply.github.com>
Co-authored-by: Paul <pavll@users.noreply.github.com>
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add functional tests for cFE Time Arithmetic APIs
4 participants