refactor(esp_timer): move test app into esp_timer_tests subdirectory

Make room for additional test apps under test_apps/ by moving the
existing esp_timer tests into their own esp_timer_tests/ subdirectory.
Update build-test-rules and include paths accordingly.
This commit is contained in:
Marius Vikhammer
2026-07-06 17:49:18 +08:00
parent 6c3f26aa27
commit 365a732796
35 changed files with 10 additions and 3 deletions
@@ -1,6 +1,6 @@
# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps
components/esp_timer/test_apps:
components/esp_timer/test_apps/esp_timer_tests:
enable:
- if: INCLUDE_DEFAULT == 1 or IDF_TARGET == "linux"
reason: run existing default build targets and include Linux
@@ -14,3 +14,10 @@ components/esp_timer/test_apps:
reason: The test requires the XTAL32K clock to measure the esp_timer timing accuracy
- if: CONFIG_NAME == "dfs" and SOC_PM_SUPPORTED != 1
reason: The test requires the PM functionality
components/esp_timer/test_apps/size_metrics:
enable:
- if: IDF_TARGET in ["esp32", "esp32c6"]
reason: Size metrics tracked on one RISC-V (esp32c6) and one Xtensa (esp32) target
depends_components:
- esp_timer
@@ -27,6 +27,6 @@ else()
endif()
idf_component_register(SRCS ${srcs}
PRIV_INCLUDE_DIRS "../../private_include" "../include"
PRIV_INCLUDE_DIRS "../../../private_include" "../../include"
PRIV_REQUIRES "${priv_requires}"
WHOLE_ARCHIVE)
@@ -17,7 +17,7 @@ void app_main(void)
{
printf("Hello world!\n");
/* Print chip information */
/* Print chip inf ormation */
esp_chip_info_t chip_info;
uint32_t flash_size;
esp_chip_info(&chip_info);