Skip to content

Commit

Permalink
Fix #79, generate stubs for internal functions
Browse files Browse the repository at this point in the history
Regenerate the stubs for fm_child, fm_cmds, and fm_tbl internal units
using the UT assert stub generator tool.
  • Loading branch information
jphickey committed Jan 30, 2023
1 parent c856997 commit e2e6d85
Show file tree
Hide file tree
Showing 4 changed files with 487 additions and 424 deletions.
8 changes: 6 additions & 2 deletions unit-test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ target_link_libraries(coverage-fm_internal-stubs ut_core_api_stubs ut_assert)

# Include and expose unit test utilities, fsw/inc, and fsw/src includes
target_include_directories(coverage-fm_internal-stubs PUBLIC utilities)
target_include_directories(coverage-fm_internal-stubs PUBLIC ../fsw/inc)
target_include_directories(coverage-fm_internal-stubs PUBLIC ../fsw/src)
target_include_directories(coverage-fm_internal-stubs PUBLIC $<TARGET_PROPERTY:fm,INCLUDE_DIRECTORIES>)

# This permits all source files under this directory scope to reference internal
# headers in the "fsw/src" directory. This is OK because it is a white-box test,
# normally these headers should not be referenced outside the module.
include_directories(../fsw/src)

# Generate a dedicated "testrunner" executable for each test file
# Accomplish this by cycling through all the app's source files, there must be
Expand Down
Loading

0 comments on commit e2e6d85

Please sign in to comment.