Skip to content

Commit

Permalink
Fix nasa#711, SB unit test updates for msg module
Browse files Browse the repository at this point in the history
- Removes dependencies on old macros
- Simplifies unit tests
- Treats msg module as internal code for now (temporary)
  • Loading branch information
skliper committed Aug 14, 2020
1 parent 8563679 commit 97682b8
Show file tree
Hide file tree
Showing 4 changed files with 176 additions and 371 deletions.
9 changes: 9 additions & 0 deletions fsw/cfe-core/unit-test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ add_library(ut_cfe-core_support STATIC
ut_support.c
ut_osprintf_stubs.c
)
target_include_directories(ut_cfe-core_support PUBLIC
${cfe-core_MISSION_DIR}/src/es
${cfe-core_MISSION_DIR}/src/evs
${cfe-core_MISSION_DIR}/src/time
${CMAKE_CURRENT_SOURCE_DIR})

# For each core module, generate the associated unit test
# This is done by linking the stubs of every OTHER module with the
Expand Down Expand Up @@ -67,6 +72,10 @@ foreach(MODULE ${CFE_CORE_MODULES})
ut_cfe-core_support
ut_cfe-core_stubs
ut_assert)

# TODO short term hack for testing with new code
target_link_libraries(${UT_TARGET_NAME}_UT msg)
#target_link_libraries(${UT_TARGET_NAME}_UT mission_msg)

add_test(${UT_TARGET_NAME}_UT ${UT_TARGET_NAME}_UT)
install(TARGETS ${UT_TARGET_NAME}_UT DESTINATION ${TGTNAME}/${UT_INSTALL_SUBDIR})
Expand Down
Loading

0 comments on commit 97682b8

Please sign in to comment.