Feature/zephyr ztest (#118)
* Leverage (older) embedded unit tests into external unit tests build upon copy of Zephyr's ztest library and CMake. * Expand top-level CMake build to run external unit tests. * Expand Zephyr module extension to run external unit tests via west or sanitycheck. Co-authored-by: Gregory Shue <gregory.shue@legrand.us>
This commit is contained in:
@@ -6,12 +6,12 @@ get_filename_component(MY_PROJECT_BASENAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
|
||||
|
||||
# Find the directory of the Zephyr module
|
||||
string(REGEX REPLACE
|
||||
"\/zephyr\/samples\/[a-zA-Z_\-]*${MY_PROJECT_BASENAME}$" ""
|
||||
"\/zephyr\/samples\/[a-zA-Z_\-\\\\/]*${MY_PROJECT_BASENAME}$" ""
|
||||
MY_ZEPHYR_MODULE_SOURCE_DIR
|
||||
${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
list(APPEND ZEPHYR_EXTRA_MODULES
|
||||
${MY_ZEPHYR_MODULE_SOURCE_DIR}
|
||||
${MY_PROJECT_BASENAME} ${MY_ZEPHYR_MODULE_SOURCE_DIR}
|
||||
)
|
||||
|
||||
# Add an absolute directory path to the CMake variable
|
||||
|
||||
Reference in New Issue
Block a user