2024-06-18 15:04:20 +08:00
|
|
|
set(srcs "test_app_main.c"
|
|
|
|
"test_uart.c")
|
|
|
|
|
|
|
|
if(CONFIG_PM_ENABLE)
|
|
|
|
list(APPEND srcs "test_uart_auto_lightsleep.c")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# Only if the target supports uart retention and the sdkconfig.ci.xxx contains at least PM_ENABLE=y
|
|
|
|
if(CONFIG_SOC_UART_SUPPORT_SLEEP_RETENTION AND CONFIG_PM_ENABLE)
|
|
|
|
list(APPEND srcs "test_uart_retention.c")
|
|
|
|
endif()
|
|
|
|
|
2022-11-10 17:37:26 +08:00
|
|
|
# In order for the cases defined by `TEST_CASE` to be linked into the final elf,
|
|
|
|
# the component can be registered as WHOLE_ARCHIVE
|
|
|
|
idf_component_register(
|
2024-06-18 15:04:20 +08:00
|
|
|
SRCS ${srcs}
|
2022-12-20 23:49:49 +08:00
|
|
|
REQUIRES driver unity test_utils esp_pm
|
|
|
|
PRIV_INCLUDE_DIRS .
|
2022-11-10 17:37:26 +08:00
|
|
|
WHOLE_ARCHIVE
|
|
|
|
)
|