mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
8df4625c84
* Decomposed tests into atomic unit tests * Made tests less time-dependent, hence more robust on different platforms (ESP32, QEMU, Linux) * Ported most of the tests to linux * Removed some redundant tests * Fixed bug the tests discovered * Simplified parts of the tests to be more clear * Partially used C++ to simplify setup/teardown * Unified setup/teardown in general
20 lines
514 B
CMake
20 lines
514 B
CMake
idf_build_get_property(target IDF_TARGET)
|
|
|
|
set(srcs "test_event_main.c" "test_event_common.cpp")
|
|
set(priv_requires "esp_event unity")
|
|
|
|
if(NOT ${target} STREQUAL "linux")
|
|
list(APPEND srcs
|
|
"test_event_target.c")
|
|
|
|
list(APPEND priv_requires
|
|
"driver"
|
|
"esp_timer"
|
|
"test_utils")
|
|
endif()
|
|
|
|
idf_component_register(SRCS ${srcs}
|
|
PRIV_INCLUDE_DIRS . ../../private_include
|
|
PRIV_REQUIRES ${priv_requires}
|
|
WHOLE_ARCHIVE)
|