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: Caelum-rc4+dev4 #2061

Merged
merged 9 commits into from
Feb 25, 2022
9 changes: 9 additions & 0 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
- name: Build Docs
run: |
make doc > make_doc_stdout.txt 2> make_doc_stderr.txt
mv build/docs/detaildesign-warnings.log detaildesign-warnings.log

# Upload documentation logs as artifacts
- name: Archive Documentation Build Logs
Expand All @@ -69,6 +70,7 @@ jobs:
path: |
make_doc_stdout.txt
make_doc_stderr.txt
detaildesign-warnings.log

- name: Error Check
run: |
Expand All @@ -77,6 +79,13 @@ jobs:
exit -1
fi

- name: Warning Check
run: |
if [[ -s detaildesign-warnings.log ]]; then
cat detaildesign-warnings.log
exit -1
fi

build-usersguide:
#Continue if check-for-duplicates found no duplicates. Always runs for pull-requests.
needs: check-for-duplicates
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ The detailed cFE user's guide can be viewed at <https://github.com/nasa/cFS/blob

## Changelog

### Development Build: v7.0.0-rc4+dev80

- Missing SB include for v2 msgid
- Resolve doxygen doc warnings and enforce in CI
- Remove explicit filename doxygen comments
- Add CFE_ES_CreateChildTask default handler
- See <https://github.com/nasa/cFE/pull/2061> and <https://github.com/nasa/cFS/pull/432>

### Development Build: v7.0.0-rc4+dev70

- Improve CFE_SB_IsValidMsgId handler
Expand Down
4 changes: 4 additions & 0 deletions cmake/cfe-common.doxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ EXCLUDE_PATTERNS += "*/ut-stubs/*"
EXCLUDE_PATTERNS += "*/ut-coverage/*"
EXCLUDE_PATTERNS += "*/unit-test*/*"

# Exclude contributing guides and readme's since they stand alone as repo documentation
EXCLUDE_PATTERNS += "*/CONTRIBUTING.md"
EXCLUDE_PATTERNS += "*/README.md"

#---------------------------------------------------------------------------
# configuration options related to source browsing
#---------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion cmake/target/src/target_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/

/**
* \file target_config.c
* \file
*
* Created on: Dec 3, 2013
* Created by: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion modules/core_api/fsw/inc/cfe_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#define CFE_VERSION_H

/* Development Build Macro Definitions */
#define CFE_BUILD_NUMBER 70 /**< @brief Development: Number of development commits since baseline */
#define CFE_BUILD_NUMBER 80 /**< @brief Development: Number of development commits since baseline */
#define CFE_BUILD_BASELINE "v7.0.0-rc4" /**< @brief Development: Reference git tag for build number */

/* Version Macro Definitions updated for official releases only */
Expand Down
34 changes: 34 additions & 0 deletions modules/core_api/ut-stubs/src/cfe_es_handlers.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,40 @@ static const cpuaddr UT_ESPOOL_ALIGN_MASK = ((cpuaddr) & ((struct UT_AlignTest *
** Functions
*/

/*------------------------------------------------------------
*
* Default handler for CFE_ES_CreateChildTask coverage stub function
*
*------------------------------------------------------------*/
void UT_DefaultHandler_CFE_ES_CreateChildTask(void *UserObj, UT_EntryKey_t FuncKey, const UT_StubContext_t *Context)
{
CFE_ES_TaskId_t *TaskIdPtr = UT_Hook_GetArgValueByName(Context, "TaskIdPtr", CFE_ES_TaskId_t *);
int32 status;
void * IdBuff;
size_t BuffSize;
size_t Position;

UT_Stub_GetInt32StatusCode(Context, &status);

if (status >= 0)
{
UT_GetDataBuffer(UT_KEY(CFE_ES_GetAppID), &IdBuff, &BuffSize, &Position);
if (IdBuff != NULL && BuffSize == sizeof(*TaskIdPtr))
{
memcpy(TaskIdPtr, IdBuff, sizeof(*TaskIdPtr));
}
else
{
*TaskIdPtr = CFE_UT_ES_DEFAULT_TASKID;
}
}

if (status < 0)
{
*TaskIdPtr = CFE_ES_TASKID_UNDEFINED;
}
}

/*------------------------------------------------------------
*
* Default handler for CFE_ES_GetAppID coverage stub function
Expand Down
3 changes: 2 additions & 1 deletion modules/core_api/ut-stubs/src/cfe_es_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

void UT_DefaultHandler_CFE_ES_AppID_ToIndex(void *, UT_EntryKey_t, const UT_StubContext_t *);
void UT_DefaultHandler_CFE_ES_CopyToCDS(void *, UT_EntryKey_t, const UT_StubContext_t *);
void UT_DefaultHandler_CFE_ES_CreateChildTask(void *, UT_EntryKey_t, const UT_StubContext_t *);
void UT_DefaultHandler_CFE_ES_ExitApp(void *, UT_EntryKey_t, const UT_StubContext_t *);
void UT_DefaultHandler_CFE_ES_GetAppID(void *, UT_EntryKey_t, const UT_StubContext_t *);
void UT_DefaultHandler_CFE_ES_GetAppIDByName(void *, UT_EntryKey_t, const UT_StubContext_t *);
Expand Down Expand Up @@ -146,7 +147,7 @@ CFE_Status_t CFE_ES_CreateChildTask(CFE_ES_TaskId_t *TaskIdPtr, const char *Task
UT_GenStub_AddParam(CFE_ES_CreateChildTask, CFE_ES_TaskPriority_Atom_t, Priority);
UT_GenStub_AddParam(CFE_ES_CreateChildTask, uint32, Flags);

UT_GenStub_Execute(CFE_ES_CreateChildTask, Basic, NULL);
UT_GenStub_Execute(CFE_ES_CreateChildTask, Basic, UT_DefaultHandler_CFE_ES_CreateChildTask);

return UT_GenStub_GetReturnValue(CFE_ES_CreateChildTask, CFE_Status_t);
}
Expand Down
1 change: 1 addition & 0 deletions modules/msg/fsw/src/cfe_msg_msgid_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include "cfe_msg.h"
#include "cfe_msg_priv.h"
#include "cfe_error.h"
#include "cfe_sb.h"
#include "cfe_platform_cfg.h"

/* cFS MsgId definitions */
Expand Down
6 changes: 3 additions & 3 deletions modules/sb/fsw/src/cfe_sb_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ int32 CFE_SB_ZeroCopyBufferValidate(CFE_SB_Buffer_t *BufPtr, CFE_SB_BufferD_t **
* \note Assumes destination pointer is valid
*
* \param[in] RouteId The route ID to add destination node to
* \param[in] DestPtr Pointer to the destination to add
* \param[in] NewNode Pointer to the destination to add
*/
int32 CFE_SB_AddDestNode(CFE_SBR_RouteId_t RouteId, CFE_SB_DestinationD_t *NewNode);

Expand All @@ -705,8 +705,8 @@ int32 CFE_SB_AddDestNode(CFE_SBR_RouteId_t RouteId, CFE_SB_DestinationD_t *NewNo
*
* \note Assumes destination pointer is valid and in route
*
* \param[in] RouteId The route ID to remove destination node from
* \param[in] DestPtr Pointer to the destination to remove
* \param[in] RouteId The route ID to remove destination node from
* \param[in] NodeToRemove Pointer to the destination to remove
*/
void CFE_SB_RemoveDestNode(CFE_SBR_RouteId_t RouteId, CFE_SB_DestinationD_t *NodeToRemove);

Expand Down
2 changes: 1 addition & 1 deletion modules/tbl/fsw/src/cfe_tbl_task.h
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ int32 CFE_TBL_TaskInit(void);
** \par Assumptions, External Events, and Notes:
** None
**
** \param[in] MessagePtr a pointer to the message received from the command pipe
** \param[in] SBBufPtr Pointer to the message received from the command pipe
**
*/
void CFE_TBL_TaskPipe(CFE_SB_Buffer_t *SBBufPtr);
Expand Down