-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
165 changed files
with
474 additions
and
32,743 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
################################################################## | ||
# | ||
# Bundle Protocol Library (BPLib) CMake build recipe | ||
# | ||
# This is for the Admin Statistics (AS) module | ||
# | ||
################################################################## | ||
|
||
add_library(bplib_as OBJECT | ||
src/bplib_as.c | ||
) | ||
|
||
target_include_directories(bplib_as PUBLIC | ||
${CMAKE_CURRENT_SOURCE_DIR}/inc | ||
$<TARGET_PROPERTY:bplib,INTERFACE_INCLUDE_DIRECTORIES> | ||
) | ||
|
||
# Add unit tests | ||
if(BPLIB_ENABLE_UNIT_TESTS) | ||
add_subdirectory(unit-test) | ||
endif(BPLIB_ENABLE_UNIT_TESTS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
################################################################## | ||
# | ||
# coverage test build recipe | ||
# | ||
# This CMake file contains the recipe for building the coverage tests. | ||
# It is invoked from the parent directory when unit tests are enabled. | ||
# | ||
################################################################## | ||
|
||
add_library(utobj_bplib_as OBJECT | ||
../src/bplib_as.c | ||
) | ||
|
||
target_compile_definitions(utobj_bplib_as PRIVATE | ||
$<TARGET_PROPERTY:bplib_as,COMPILE_DEFINITIONS> | ||
$<TARGET_PROPERTY:ut_coverage_compile,INTERFACE_COMPILE_DEFINITIONS> | ||
) | ||
|
||
target_compile_options(utobj_bplib_as PRIVATE | ||
$<TARGET_PROPERTY:bplib_as,COMPILE_OPTIONS> | ||
$<TARGET_PROPERTY:ut_coverage_compile,INTERFACE_COMPILE_OPTIONS> | ||
) | ||
|
||
target_include_directories(utobj_bplib_as PRIVATE | ||
$<TARGET_PROPERTY:bplib_as,INCLUDE_DIRECTORIES> | ||
$<TARGET_PROPERTY:ut_coverage_compile,INTERFACE_INCLUDE_DIRECTORIES> | ||
) | ||
|
||
# Add executable | ||
add_executable(coverage-bplib_as-testrunner | ||
utilities/bplib_as_test_utils.c | ||
bplib_as_test.c | ||
$<TARGET_OBJECTS:utobj_bplib_as> | ||
) | ||
|
||
target_include_directories(coverage-bplib_as-testrunner PRIVATE | ||
../src | ||
${CMAKE_CURRENT_SOURCE_DIR}/inc | ||
utilities/ | ||
$<TARGET_PROPERTY:bplib_as,INTERFACE_INCLUDE_DIRECTORIES> | ||
) | ||
|
||
target_link_libraries(coverage-bplib_as-testrunner PUBLIC | ||
ut_coverage_link | ||
ut_assert | ||
) | ||
|
||
add_test(coverage-bplib_as-testrunner coverage-bplib_as-testrunner) | ||
|
||
# Install the executables to a staging area for test in cross environments | ||
if (INSTALL_TARGET_LIST) | ||
foreach(TGT ${INSTALL_TARGET_LIST}) | ||
install(TARGETS coverage-bplib_as-testrunner DESTINATION ${TGT}/${UT_INSTALL_SUBDIR}) | ||
endforeach() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
################################################################## | ||
# | ||
# Bundle Protocol Library (BPLib) CMake build recipe | ||
# | ||
# This is for the "as" stub functions | ||
# | ||
################################################################## | ||
|
||
add_library(bplib_as_stubs STATIC | ||
bplib_as_stubs.c | ||
) | ||
|
||
target_include_directories(bplib_as_stubs PUBLIC | ||
$<TARGET_PROPERTY:bplib_as,INTERFACE_INCLUDE_DIRECTORIES> | ||
) | ||
|
||
target_link_libraries(bplib_as_stubs PUBLIC | ||
ut_assert | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.