diff --git a/components/freertos/test_apps/freertos/CMakeLists.txt b/components/freertos/test_apps/freertos/CMakeLists.txt index e0168c913b..402da75c30 100644 --- a/components/freertos/test_apps/freertos/CMakeLists.txt +++ b/components/freertos/test_apps/freertos/CMakeLists.txt @@ -6,6 +6,7 @@ cmake_minimum_required(VERSION 3.16) # type is treated as separate component set(test_types "kernel" + "performance" "port") list(APPEND EXTRA_COMPONENT_DIRS diff --git a/components/freertos/test_apps/freertos/performance/CMakeLists.txt b/components/freertos/test_apps/freertos/performance/CMakeLists.txt new file mode 100644 index 0000000000..8b2b417d5e --- /dev/null +++ b/components/freertos/test_apps/freertos/performance/CMakeLists.txt @@ -0,0 +1,10 @@ +# Register all of the "performance" tests as a component + +# In order for the cases defined by `TEST_CASE` in "performance" to be linked into +# the final elf, the component can be registered as WHOLE_ARCHIVE +idf_component_register(SRC_DIRS "." + PRIV_REQUIRES test_utils + WHOLE_ARCHIVE) + +# Todo: Fix no-format errors +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/freertos/test/performance/test_freertos_scheduling_time.c b/components/freertos/test_apps/freertos/performance/test_freertos_scheduling_time.c similarity index 100% rename from components/freertos/test/performance/test_freertos_scheduling_time.c rename to components/freertos/test_apps/freertos/performance/test_freertos_scheduling_time.c diff --git a/components/freertos/test/performance/test_isr_latency.c b/components/freertos/test_apps/freertos/performance/test_isr_latency.c similarity index 100% rename from components/freertos/test/performance/test_isr_latency.c rename to components/freertos/test_apps/freertos/performance/test_isr_latency.c