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 #374, Add Object Utility API functional tests #439

Conversation

yammajamma
Copy link
Contributor

Fix #374, Object Utility API's missing functional test

Describe the contribution
Created missing functional tests for the OS_IdentifyObject, OS_ConvertToArrayIndex and OS_ForEachObject functions.

Testing performed
Steps taken to test the contribution:

  1. Standard build and ran unit tests.

Expected behavior changes

System(s) tested on
cFS Dev Server
OS: Ubuntu 18.04
Versions: OSAL 5.0.11.0

**Contributor Info **
Yasir Khan
NASA GSFC

@skliper skliper added the CCB:Ignore Incomplete Pull Request with open actions. label Apr 28, 2020
@skliper skliper changed the title Fix #374, Created Object Utility API's missing functional tests Fix #374, Add Object Utility API functional tests Apr 28, 2020
Copy link
Contributor

@astrogeco astrogeco left a comment

Choose a reason for hiding this comment

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

Can we default all text files to be .md instead of .txt?

@skliper
Copy link
Contributor

skliper commented May 5, 2020

Can we default all text files to be .md instead of .txt?

I'd recommend deleting the .txt file, doesn't add anything.

@yammajamma yammajamma force-pushed the fix374-2-Object-Utilities-Missing-Tests branch from 8fbea56 to 1822026 Compare May 6, 2020 17:36
@skliper skliper added enhancement CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) unit-test Tickets related to the OSAL unit testing (functional and/or coverage) and removed CCB:Ignore Incomplete Pull Request with open actions. labels May 11, 2020
@skliper skliper force-pushed the fix374-2-Object-Utilities-Missing-Tests branch from 1822026 to 7d8d892 Compare May 12, 2020 13:23
skliper added a commit to skliper/cFS that referenced this pull request May 12, 2020
@skliper
Copy link
Contributor

skliper commented May 12, 2020

Rebased for bundle CI testing with (mostly) IC branches (broken sample_app commit excluded, ut macro commit included).

Bundle CI passes: https://travis-ci.com/github/skliper/cFS/builds/165460267

Integration Candidate COMBINED 2020-04-29 and 2020-05-06
@astrogeco astrogeco requested review from jphickey and skliper May 13, 2020 16:19
@skliper
Copy link
Contributor

skliper commented May 13, 2020

CCB 20200513 - Discussed, will rebase and review offline (concept good)

@skliper skliper added CCB-20200513 and removed CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) labels May 13, 2020
@skliper skliper force-pushed the fix374-2-Object-Utilities-Missing-Tests branch from 7d8d892 to 8352d2f Compare May 13, 2020 17:58
@skliper
Copy link
Contributor

skliper commented May 13, 2020

Rebased and ready for review

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.

Add copyright header:

/*
 * 
 *    Copyright (c) 2020, United States government as represented by the
 *    administrator of the National Aeronautics Space Administration.
 *    All rights reserved. This software was created at NASA Goddard
 *    Space Flight Center pursuant to government contracts.
 * 
 *    This is governed by the NASA Open Source Agreement and may be used,
 *    distributed and modified only according to the terms of that agreement.
 * 
 */

@skliper skliper added this to the 5.1.0 milestone May 16, 2020
@astrogeco astrogeco changed the base branch from master to integration-candidate May 19, 2020 20:02
@astrogeco astrogeco changed the base branch from integration-candidate to master May 19, 2020 20:02
@astrogeco
Copy link
Contributor

@jphickey can you take a look at this?

Copy link
Contributor

@jphickey jphickey left a comment

Choose a reason for hiding this comment

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

Only concern is the checking for specific values output from the ConvertToArrayIndex -- no assumption should be made about specific values in this context.

src/tests/idmap-api-test/idmap-api-test.c Outdated Show resolved Hide resolved
@skliper skliper added the CCB:Ignore Incomplete Pull Request with open actions. label May 20, 2020
@yammajamma yammajamma changed the base branch from master to integration-candidate May 21, 2020 16:41
…ange between 0 and <MAX and output array indices vary
@skliper skliper removed the CCB:Ignore Incomplete Pull Request with open actions. label May 22, 2020
@astrogeco astrogeco added IC-20200520 CCB:Approved Indicates code review and approval by community CCB labels May 26, 2020
@astrogeco astrogeco merged commit 35d8b73 into nasa:integration-candidate May 26, 2020
jphickey pushed a commit to jphickey/osal that referenced this pull request Aug 10, 2022
Fix nasa#438: Set OSAL_SYSTEM_BSPTYPE for native builds
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 unit-test Tickets related to the OSAL unit testing (functional and/or coverage)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Object Utility API functional tests
4 participants