Skip to content

Commit

Permalink
EDS: Update to 2024-11-13 baseline
Browse files Browse the repository at this point in the history
Merge remote-tracking branch 'github-nasa/main' into techdev-sois-eds
  • Loading branch information
jphickey committed Nov 14, 2024
2 parents d8e6716 + f87ab0e commit 428500d
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 23 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## Development Build: equuleus-rc1+dev209
- Remove redundant status check in CFE_ES_RegisterCDSEx()
- See <https://github.com/nasa/cFE/pull/2329>

## Development Build: equuleus-rc1+dev205
- fix sb coverage test failure
- Pass the CMAKE_PREFIX_PATH to targets
- See <https://github.com/nasa/cFE/pull/2602> and <https://github.com/nasa/cFE/pull/2606>

## Development Build: equuleus-rc1+dev199
- Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows
- See <https://github.com/nasa/cFE/pull/2599>
Expand Down
4 changes: 4 additions & 0 deletions cmake/Makefile.sample
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ ifneq ($(BUILDTYPE),)
PREP_OPTS += -DCMAKE_BUILD_TYPE=$(BUILDTYPE)
endif

ifneq ($(CMAKE_PREFIX_PATH),)
PREP_OPTS += -DCMAKE_PREFIX_PATH=$(CMAKE_PREFIX_PATH)
endif

all:
$(MAKE) --no-print-directory -C "$(O)" mission-all

Expand Down
1 change: 1 addition & 0 deletions cmake/mission_build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ function(process_arch TARGETSYSTEM)
-DMISSION_BINARY_DIR=${MISSION_BINARY_DIR}
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
-DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}
-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=${CMAKE_EXPORT_COMPILE_COMMANDS}
-DCFE_EDS_ENABLED_BUILD:BOOL=${CFE_EDS_ENABLED_BUILD}
${SELECTED_TOOLCHAIN_FILE}
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 @@ -26,7 +26,7 @@
#define CFE_VERSION_H

/* Development Build Macro Definitions */
#define CFE_BUILD_NUMBER 199 /**< @brief Development: Number of development git commits since CFE_BUILD_BASELINE */
#define CFE_BUILD_NUMBER 209 /**< @brief Development: Number of development git commits since CFE_BUILD_BASELINE */
#define CFE_BUILD_BASELINE "equuleus-rc1" /**< @brief Development: Reference git tag for build number */
#define CFE_BUILD_DEV_CYCLE "equuleus-rc2" /**< @brief Development: Release name for current development cycle */
#define CFE_BUILD_CODENAME "Equuleus" /**< @brief: Development: Code name for the current build */
Expand Down
9 changes: 1 addition & 8 deletions modules/es/fsw/src/cfe_es_cds.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,14 +427,7 @@ int32 CFE_ES_RegisterCDSEx(CFE_ES_CDSHandle_t *HandlePtr, size_t UserBlockSize,
CFE_ES_WriteToSysLog("%s: Failed to update CDS Registry (Stat=0x%08X)\n", __func__,
(unsigned int)RegUpdateStatus);

/*
* Return failure only if this was the primary error,
* do not overwrite a preexisting error.
*/
if (Status == CFE_SUCCESS)
{
Status = RegUpdateStatus;
}
Status = RegUpdateStatus;
}

if (Status == CFE_SUCCESS && !IsNewOffset)
Expand Down
96 changes: 82 additions & 14 deletions modules/sb/ut-coverage/sb_UT.c
Original file line number Diff line number Diff line change
Expand Up @@ -4690,56 +4690,124 @@ void Test_CFE_SB_ValidateMsgId(void)

void Test_CFE_SB_CmdTopicIdToMsgId(void)
{
CFE_SB_MsgId_Atom_t MsgIdVal;
CFE_SB_MsgId_Atom_t MsgIdVal1;
CFE_SB_MsgId_Atom_t MsgIdVal2;
bool ReturnCode1 = false;
bool ReturnCode2 = false;

MsgIdVal1 = CFE_SB_CmdTopicIdToMsgId(1, 1);
ReturnCode1 = CFE_SB_IsValidMsgId(CFE_SB_ValueToMsgId(MsgIdVal1));

MsgIdVal = CFE_SB_CmdTopicIdToMsgId(1, 1);
UtAssert_BOOL_TRUE(CFE_SB_IsValidMsgId(CFE_SB_ValueToMsgId(MsgIdVal)));
MsgIdVal2 = CFE_SB_CmdTopicIdToMsgId(1, 0);
ReturnCode2 = CFE_SB_IsValidMsgId(CFE_SB_ValueToMsgId(MsgIdVal2));

MsgIdVal = CFE_SB_CmdTopicIdToMsgId(1, 0);
UtAssert_BOOL_TRUE(CFE_SB_IsValidMsgId(CFE_SB_ValueToMsgId(MsgIdVal)));
if(MsgIdVal1 == 0 || MsgIdVal2 == 0)
{
/* Macro does not exist. Topic ID has not been implemented. */
UtAssert_MIR("Topic ID has not been implemented. ");
}
else
{
UtAssert_BOOL_TRUE(ReturnCode1);
UtAssert_BOOL_TRUE(ReturnCode2);
}
}

void Test_CFE_SB_TlmTopicIdToMsgId(void)
{
CFE_SB_MsgId_Atom_t MsgIdVal;
CFE_SB_MsgId_Atom_t MsgIdVal1;
CFE_SB_MsgId_Atom_t MsgIdVal2;
bool ReturnCode1 = false;
bool ReturnCode2 = false;

MsgIdVal1 = CFE_SB_TlmTopicIdToMsgId(1, 1);
ReturnCode1 = CFE_SB_IsValidMsgId(CFE_SB_ValueToMsgId(MsgIdVal1));

MsgIdVal = CFE_SB_TlmTopicIdToMsgId(1, 1);
UtAssert_BOOL_TRUE(CFE_SB_IsValidMsgId(CFE_SB_ValueToMsgId(MsgIdVal)));
MsgIdVal2 = CFE_SB_TlmTopicIdToMsgId(1, 0);
ReturnCode2 = CFE_SB_IsValidMsgId(CFE_SB_ValueToMsgId(MsgIdVal2));

MsgIdVal = CFE_SB_CmdTopicIdToMsgId(1, 0);
UtAssert_BOOL_TRUE(CFE_SB_IsValidMsgId(CFE_SB_ValueToMsgId(MsgIdVal)));
if(MsgIdVal1 == 0 || MsgIdVal2 == 0)
{
/* Macro does not exist. Topic ID has not been implemented. */
UtAssert_MIR("Topic ID has not been implemented. ");
}
else
{
UtAssert_BOOL_TRUE(ReturnCode1);
UtAssert_BOOL_TRUE(ReturnCode2);
}
}

void Test_CFE_SB_GlobalCmdTopicIdToMsgId(void)
{
CFE_SB_MsgId_Atom_t MsgIdVal;
bool ReturnCode = false;

MsgIdVal = CFE_SB_GlobalCmdTopicIdToMsgId(2);
UtAssert_BOOL_TRUE(CFE_SB_IsValidMsgId(CFE_SB_ValueToMsgId(MsgIdVal)));
ReturnCode = CFE_SB_IsValidMsgId(CFE_SB_ValueToMsgId(MsgIdVal));
if(MsgIdVal == 0)
{
/* Macro does not exist. Topic ID has not been implemented. */
UtAssert_MIR("Topic ID has not been implemented. ");
}
else
{
UtAssert_BOOL_TRUE(ReturnCode);
}
}

void Test_CFE_SB_GlobalTlmTopicIdToMsgId(void)
{
CFE_SB_MsgId_Atom_t MsgIdVal;
bool ReturnCode = false;

MsgIdVal = CFE_SB_GlobalTlmTopicIdToMsgId(2);
UtAssert_BOOL_TRUE(CFE_SB_IsValidMsgId(CFE_SB_ValueToMsgId(MsgIdVal)));
ReturnCode = CFE_SB_IsValidMsgId(CFE_SB_ValueToMsgId(MsgIdVal));
if(MsgIdVal == 0)
{
/* Macro does not exist. Topic ID has not been implemented. */
UtAssert_MIR("Topic ID has not been implemented. ");
}
else
{
UtAssert_BOOL_TRUE(ReturnCode);
}
}

void Test_CFE_SB_LocalCmdTopicIdToMsgId(void)
{
CFE_SB_MsgId_Atom_t MsgIdVal;
bool ReturnCode = false;

MsgIdVal = CFE_SB_LocalCmdTopicIdToMsgId(3);
UtAssert_BOOL_TRUE(CFE_SB_IsValidMsgId(CFE_SB_ValueToMsgId(MsgIdVal)));
ReturnCode = CFE_SB_IsValidMsgId(CFE_SB_ValueToMsgId(MsgIdVal));
if(MsgIdVal == 0)
{
/* Macro does not exist. Topic ID has not been implemented. */
UtAssert_MIR("Topic ID has not been implemented. ");
}
else
{
UtAssert_BOOL_TRUE(ReturnCode);
}
}

void Test_CFE_SB_LocalTlmTopicIdToMsgId(void)
{
CFE_SB_MsgId_Atom_t MsgIdVal;
bool ReturnCode = false;

MsgIdVal = CFE_SB_LocalTlmTopicIdToMsgId(3);
UtAssert_BOOL_TRUE(CFE_SB_IsValidMsgId(CFE_SB_ValueToMsgId(MsgIdVal)));
ReturnCode = CFE_SB_IsValidMsgId(CFE_SB_ValueToMsgId(MsgIdVal));
if(MsgIdVal == 0)
{
/* Macro does not exist. Topic ID has not been implemented. */
UtAssert_MIR("Topic ID has not been implemented. ");
}
else
{
UtAssert_BOOL_TRUE(ReturnCode);
}
}

/*
Expand Down

0 comments on commit 428500d

Please sign in to comment.