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

cFE Integration candidate: 2021-07-27 #1701

Merged
merged 26 commits into from
Jul 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
63134bc
Fix #1650, Add File Utility Functional Tests.
zanzaben Jul 19, 2021
2f0c3dd
Fix #469, Adding coverage tests for cfe_es_apps.c
pepepr08 Jul 20, 2021
31a2f82
Fix #1698, correct return code check
jphickey Jul 21, 2021
605eb8a
Fix #1599, documentation for FS APIs that return OSAL codes
jphickey Jul 21, 2021
ff1193b
Merge pull request #1699 from jphickey/fix-1698-retcode-check
astrogeco Jul 21, 2021
4dee1d6
Merge pull request #1700 from jphickey/fix-1599-fs-api-doc
astrogeco Jul 21, 2021
4969f02
Merge pull request #1695 from pepepr08/fix469-es-apps
astrogeco Jul 21, 2021
05e8904
Fix #1703, update docs for CFE_FS_BackgroundFileDumpRequest
jphickey Jul 23, 2021
9cdf51a
Fix #1705, correct return code mismatches
jphickey Jul 23, 2021
6b75f6b
Fix #1650, Add delay loop to wait until background job ends
jphickey Jul 23, 2021
81c598a
Fix #1650, Make state global and limit delay loop.
zanzaben Jul 23, 2021
17861ce
Fix #1659, Add custom epoch support to TIME UT
pepepr08 Jul 26, 2021
363722a
Fix #1650, Make Global struct for functional test.
zanzaben Jul 27, 2021
b277a2c
Fix #1689, Add time arithmetic functional tests
nmullane Jul 26, 2021
ea754b6
Merge pull request #1673 from zanzaben/fix1650_FS_File_Util_Func_Tests
astrogeco Jul 27, 2021
ce97f45
Merge pull request #1711 from pepepr08/fix1659-time-ut
astrogeco Jul 27, 2021
1211954
Fix #1396, scrub command documentation
jphickey Jul 28, 2021
9dba23c
Fix #1702 #1709 #1713 #1717, Requirements update for Caelum
skliper Jul 28, 2021
52b719d
Fix #1718, Add null check to CFE_ES_TaskID_ToIndex.
zanzaben Jul 28, 2021
5501fbb
Merge pull request #1720 from skliper/fix1717-caelum_req_scrub
astrogeco Jul 28, 2021
28f4792
Merge pull request #1721 from zanzaben/fic1718_TaskID_ToIndex_missing…
astrogeco Jul 28, 2021
1b0e610
Merge pull request #1719 from jphickey/fix-1396-command-docs
astrogeco Jul 28, 2021
e298961
Merge pull request #1715 from nmullane/fix1689-time-arithmetic-functi…
astrogeco Jul 28, 2021
0865774
Merge pull request #1704 from jphickey/fix-1703-bgfiledump-doc
astrogeco Jul 29, 2021
505fcd4
Merge pull request #1706 from jphickey/fix-1705-retcode-mismatches
astrogeco Jul 29, 2021
45a6ed1
IC:2021-07-27, Bump to v6.8.0-rc1+dev789
astrogeco Jul 29, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@ The detailed cFE user's guide can be viewed at <https://github.com/nasa/cFS/blob

## Version History

### Development Build: v6.8.0-rc1+dev789

- Correct return code check
- Documentation for FS APIs that return OSAL codes
- Adding coverage tests for cfe_es_apps.c
- Add File Utility Functional Tests.
- Add custom epoch support to TIME UT
- Requirements update for Caelum
- Add null check to CFE_ES_TaskID_ToIndex.
- Scrub command documentation
- Add time arithmetic functional tests
- Update docs for CFE_FS_BackgroundFileDumpRequest
- Correct return code mismatches
- See <https://github.com/nasa/cFE/pull/1701> and <https://github.com/nasa/cFS/pull/313>

### Development Build: v6.8.0-rc1+dev762

- Change CI to use Test Log.
Expand Down
10 changes: 5 additions & 5 deletions docs/cFE Application Developers Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -980,14 +980,14 @@ The specific size of the management structure depends on the platform
architecture word size and alignment requirements, and padding may be
added as necessary to meet the system requirements. For illustrative
purposes, the examples below use sizes that are respresentative of a
32-bit CPU with 32-bit buffer alignment with no extra alignment padding
32-bit CPU with 32-bit buffer alignment with no extra alignment padding
added. The pool overhead will increase on a 64-bit CPU with 64-bit
alignment, or if pool alignment configured greater than 32 bits. For
more information on pool buffer alignment, see the description of
more information on pool buffer alignment, see the description of
the `CFE_PLATFORM_ES_MEMPOOL_ALIGN_SIZE_MIN` configuration parameter.

It should also be noted that while 64-bit CPU architectures are fully
supported by the memory pool internal implementation in current CFE
supported by the memory pool internal implementation in current CFE
versions, the API is carried over from older CFE versions in order to
be backward compatible. Some memory pool API functions (e.g.
`CFE_ES_GetPoolBufInfo`, `CFE_ES_PutPoolBuf`, etc) return a buffer size
Expand Down Expand Up @@ -1893,7 +1893,7 @@ SAMPLE_AppData_t SAMPLE_AppData; /* Instantiate Task Data */
CFE_SB_TransmitMsg(&SAMPLE_APP_Data.HkTlm.TlmHeader.Msg, true);
...
}
```
```

## 6.7 Receiving Software Bus Messages

Expand Down Expand Up @@ -2057,7 +2057,7 @@ SAMPLE_AppData_t SAMPLE_AppData; /* Instantiate Task Data */

## 6.9 Best Practices for using Software Bus

The following are recommended "best practices" for applications using EVS.
The following are recommended "best practices" for applications using SB.
1. Applications should use the Software Bus for all communication with other
applications.
2. Pipe depth and message limits are dependent on the entire software system.
Expand Down
20 changes: 14 additions & 6 deletions docs/cFE_FunctionalRequirements.csv

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion docs/src/cfe_es.dox
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@

Or the #CFE_ES_QUERY_ALL_CC command can be used to get information about
all the applications that are currently registered with ES. This command
writes the application data to a file and has a one parameter which
writes the application data to a file and has a one parameter which
specifies the path and filename of the output file.

For either command, the following Application information is made available:
Expand Down Expand Up @@ -825,6 +825,13 @@
/**
\page cfeescmds cFE Executive Services Commands

Upon receipt of any command, the Executive Services application will confirm that the
message length embedded within the header (from `CFE_MSG_GetSize()`) matches the expected
length of that message, based on the size of the C structure defining that command.
If there is any discrepancy between the expected and actual message size, ES will generate
the #CFE_ES_LEN_ERR_EID event, increment the command error counter (\ES_CMDEC), and the
command will _not_ be accepted for processing.

The following is a list of commands that are processed by the cFE Executive Services Task.
**/

Expand Down
12 changes: 9 additions & 3 deletions docs/src/cfe_evs.dox
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
EVS can be configured to control the Local Event Log to either discard or overwrite
the contents of the log when it becomes full. If the mode is set to overwrite, the
log is treated like a circular buffer, overwriting the oldest event message contained
in the log first. This control is configured by default in the cfe_platform_cfg.h
in the log first. This control is configured by default in the cfe_platform_cfg.h
file but can be modified by \link #CFE_EVS_SET_LOG_MODE_CC a command \endlink.


Expand Down Expand Up @@ -170,7 +170,7 @@
the events that it wants to register for filtering along with the
\ref cfeevsugmsgfilter (only the Binary Filtering Scheme
exists currently). Note that applications are limited in the number of events that
they can register for filtering (see #CFE_PLATFORM_EVS_MAX_EVENT_FILTERS in cfe_platform_cfg.h
they can register for filtering (see #CFE_PLATFORM_EVS_MAX_EVENT_FILTERS in cfe_platform_cfg.h
for the mission defined limit). The filtering method uses a mask to determine if the
message is forwarded to the software bus, making it available in telemetry (see
\ref cfeevsugmsgfilter for a description on filtering). Commands are available to
Expand Down Expand Up @@ -500,6 +500,13 @@
/**
** \page cfeevscmds cFE Event Services Commands
**
** Upon receipt of any command, the Event Services application will confirm that the
** message length embedded within the header (from `CFE_MSG_GetSize()`) matches the expected
** length of that message, based on the size of the C structure defining that command.
** If there is any discrepancy between the expected and actual message size, EVS will generate
** the #CFE_EVS_LEN_ERR_EID event, increment the command error counter (\EVS_CMDEC), and the
** command will _not_ be accepted for processing.
**
** The following is a list of commands that are processed by the cFE Event Services Task.
**/

Expand All @@ -515,4 +522,3 @@
** The following are configuration parameters used to configure the cFE Event Services
** either for each platform or for a mission as a whole.
**/

7 changes: 7 additions & 0 deletions docs/src/cfe_sb.dox
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,13 @@
/**
** \page cfesbcmds cFE Software Bus Commands
**
** Upon receipt of any command, the Software Bus application will confirm that the
** message length embedded within the header (from `CFE_MSG_GetSize()`) matches the expected
** length of that message, based on the size of the C structure defining that command.
** If there is any discrepancy between the expected and actual message size, SB will generate
** the #CFE_SB_LEN_ERR_EID event, increment the command error counter (\SB_CMDEC), and the
** command will _not_ be accepted for processing.
**
** The following is a list of commands that are processed by the cFE Software Bus Task.
**/

Expand Down
10 changes: 8 additions & 2 deletions docs/src/cfe_tbl.dox
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
updated (or in the case of dump-only tables, dumped). Most Applications perform this periodic
management at the same time as housekeeping requests are processed. This table management is
performed by the cFE Application that "owns" a table (ie - the cFE Application that registered
the table with cFE Table Services). It is possible for cFE Applications to "share" a table with
the table with cFE Table Services). It is possible for cFE Applications to "share" a table with
other cFE Applications. An Application that shares a table does not typically perform any of the
management duties associated with that table.

Expand Down Expand Up @@ -414,6 +414,13 @@
/**
** \page cfetblcmds cFE Table Services Commands
**
** Upon receipt of any command, the Table Services application will confirm that the
** message length embedded within the header (from `CFE_MSG_GetSize()`) matches the expected
** length of that message, based on the size of the C structure defining that command.
** If there is any discrepancy between the expected and actual message size, TBL will generate
** the #CFE_TBL_LEN_ERR_EID event, increment the command error counter (\TBL_CMDEC), and the
** command will _not_ be accepted for processing.
**
** The following is a list of commands that are processed by the cFE Table Services Task.
**/

Expand All @@ -429,4 +436,3 @@
** The following are configuration parameters used to configure the cFE Table Services
** either for each platform or for a mission as a whole.
**/

12 changes: 9 additions & 3 deletions docs/src/cfe_time.dox
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
In the third system, the MET is located on hardware connected via spacewire. When MET seconds
increment, a spacewire time tick triggers a local processor interrupt to signal the tone.
Shortly after announcing the tone, the hardware containing the MET also generates a spacewire
data packet containing the MET value corresponding to the tone. TIME must wait until both
data packet containing the MET value corresponding to the tone. TIME must wait until both
the tone and data packet have been received before validating the tone. The tone must have
occurred approximately one second after the previous tone signal and the data packet must
have been received within a specified window in time following the tone.
Expand Down Expand Up @@ -766,7 +766,7 @@
that can be made to the STCF to compensate for oscillator drift.
Mission specific ground correlation should be used to assist in
determining the proper values to use. The Leap Seconds should be
set to the current TAI-UTC. Note that the International Earth
set to the current TAI-UTC. Note that the International Earth
Rotation and Reference Systems Service Bulletin C, which defines
the current difference, reports it as UTC-TAI, and thus that value
must be negated. <B>The Leap Seconds value will always be a positive
Expand Down Expand Up @@ -825,6 +825,13 @@
/**
** \page cfetimecmds cFE Time Services Commands
**
** Upon receipt of any command, the Time Services application will confirm that the
** message length embedded within the header (from `CFE_MSG_GetSize()`) matches the expected
** length of that message, based on the size of the C structure defining that command.
** If there is any discrepancy between the expected and actual message size, TIME will generate
** the #CFE_TIME_LEN_ERR_EID event, increment the command error counter (\TIME_CMDEC), and the
** command will _not_ be accepted for processing.
**
** The following is a list of commands that are processed by the cFE Time Services Task.
**/

Expand All @@ -840,4 +847,3 @@
** The following are configuration parameters used to configure the cFE Time Services
** either for each platform or for a mission as a whole.
**/

4 changes: 2 additions & 2 deletions modules/cfe_assert/src/cfe_assert_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void UT_BSP_Lock(void)
int32 rc;

rc = OS_MutSemTake(CFE_Assert_Global.AccessMutex);
if (rc != CFE_SUCCESS)
if (rc != OS_SUCCESS)
{
CFE_ES_WriteToSysLog("%s(): Error from OS_MutSemTake(): %d\n", __func__, (int)rc);
}
Expand All @@ -54,7 +54,7 @@ void UT_BSP_Unlock(void)
int32 rc;

rc = OS_MutSemGive(CFE_Assert_Global.AccessMutex);
if (rc != CFE_SUCCESS)
if (rc != OS_SUCCESS)
{
CFE_ES_WriteToSysLog("%s(): Error from OS_MutSemGive(): %d\n", __func__, (int)rc);
}
Expand Down
2 changes: 2 additions & 0 deletions modules/cfe_testcase/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ add_cfe_app(cfe_testcase
src/es_misc_test.c
src/es_mempool_test.c
src/fs_header_test.c
src/fs_util_test.c
src/sb_pipe_mang_test.c
src/time_arithmetic_test.c
src/time_current_test.c
)

Expand Down
8 changes: 5 additions & 3 deletions modules/cfe_testcase/src/cfe_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,15 @@ void CFE_TestMain(void)
/*
* Register test cases in UtAssert
*/
ESInfoTestSetup();
ESTaskTestSetup();
ESCDSTestSetup();
ESMiscTestSetup();
ESInfoTestSetup();
ESMemPoolTestSetup();
ESMiscTestSetup();
ESTaskTestSetup();
FSHeaderTestSetup();
FSUtilTestSetup();
SBPipeMangSetup();
TimeArithmeticTestSetup();
TimeCurrentTestSetup();

/*
Expand Down
13 changes: 10 additions & 3 deletions modules/cfe_testcase/src/cfe_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
#include "uttest.h"
#include "utassert.h"

typedef struct
{
CFE_FS_FileWriteMetaData_t FuncTestState;
} CFE_FT_Global_t;

/**
* Name of log file to write
*
Expand Down Expand Up @@ -73,13 +78,15 @@
#define cFE_FTAssert_VOIDCALL(func) (func, UtAssert(true, #func, __FILE__, __LINE__))

void CFE_TestMain(void);
void ESInfoTestSetup(void);
void ESTaskTestSetup(void);
void ESCDSTestSetup(void);
void ESMiscTestSetup(void);
void ESInfoTestSetup(void);
void ESMemPoolTestSetup(void);
void ESMiscTestSetup(void);
void ESTaskTestSetup(void);
void FSHeaderTestSetup(void);
void FSUtilTestSetup(void);
void SBPipeMangSetup(void);
void TimeArithmeticTestSetup(void);
void TimeCurrentTestSetup(void);

#endif /* CFE_TEST_H */
Loading