6091021e83
New unity component can be used for testing other applications. Upstream version of Unity is included as a submodule. Utilities specific to ESP-IDF unit tests (partitions, leak checking setup/teardown functions, etc) are kept only in unit-test-app. Kconfig options are added to allow disabling certain Unity features.
9 lines
247 B
CMake
9 lines
247 B
CMake
set(SOC_NAME ${IDF_TARGET})
|
|
if(EXISTS "../${SOC_NAME}/test")
|
|
set(COMPONENT_SRCDIRS "../${SOC_NAME}/test")
|
|
set(COMPONENT_ADD_INCLUDEDIRS "../${SOC_NAME}/test")
|
|
|
|
set(COMPONENT_REQUIRES unity test_utils)
|
|
|
|
register_component()
|
|
endif()
|