Skip to content

Commit

Permalink
Merge pull request #448 from espressif/ci/update_test_app
Browse files Browse the repository at this point in the history
Update our good-old test-app
  • Loading branch information
tore-espressif authored Dec 3, 2024
2 parents c817af2 + b6fdd43 commit 59eb056
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 31 deletions.
4 changes: 2 additions & 2 deletions .build-test-rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ test_apps/components:
- "components/bh1750/**"
- "components/fbm320/**"
- "components/hts221/**"
- "components/lcd/ra8875/**"
- "components/lcd/sh1107/**"
- "components/lcd/esp_lcd_ra8875/**"
- "components/lcd/esp_lcd_sh1107/**"
- "components/lcd_touch/**"
- "components/mag3110/**"
- "components/mpu6050/**"
Expand Down
45 changes: 16 additions & 29 deletions test_apps/components/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,24 @@
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)

set(EXTRA_COMPONENT_DIRS "../../components" "../../components/lcd" "../../components/lcd_touch" "../../components/io_expander")
set(EXCLUDE_COMPONENTS "es8311 es7210") # Deprecated components
# lcd_touch components do not have their own dedicated test_app
# so we add them to build here to have at least compilation test
set(EXTRA_COMPONENT_DIRS "../../components/lcd_touch")

# Explicitly add components that do not have an test_app
# Must be kept in sync with list in .build-test-rules.yml
list(APPEND EXTRA_COMPONENT_DIRS
"../../components/lcd/esp_lcd_sh1107"
"../../components/lcd/esp_lcd_ra8875"
"../../components/bh1750"
"../../components/fbm320"
"../../components/hts221"
"../../components/mag3110"
"../../components/mpu6050"
)

include($ENV{IDF_PATH}/tools/cmake/version.cmake) # $ENV{IDF_VERSION} was added after v4.3...

# Components only for IDF5.0 and greater
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_LESS "5.0")
list(APPEND EXCLUDE_COMPONENTS "esp_lcd_touch_stmpe610" "ds18b20" "esp_lcd_ssd1681")
elseif("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_LESS "5.3")
list(APPEND EXCLUDE_COMPONENTS "esp_lcd_ili9881c")
endif()

# Test rgb lcd components only in IDF 5.0.5 or greater
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_LESS "5.0.4")
list(APPEND EXCLUDE_COMPONENTS "esp_lcd_gc9503")
endif()

# Test rgb lcd components only in esp32s3
if(NOT "${IDF_TARGET}" STREQUAL "esp32s3")
list(APPEND EXCLUDE_COMPONENTS "esp_lcd_gc9503")
endif()

# Test mipi dsi lcd components only in esp32p4
if(NOT "${IDF_TARGET}" STREQUAL "esp32p4")
list(APPEND EXCLUDE_COMPONENTS "esp_lcd_ili9881c")
endif()

# Test i80 lcd components only in esp32s2, esp32s3
if(NOT "${IDF_TARGET}" STREQUAL "esp32s2" AND NOT "${IDF_TARGET}" STREQUAL "esp32s3")
list(APPEND EXCLUDE_COMPONENTS "esp_lcd_st7796")
endif()
include($ENV{IDF_PATH}/tools/cmake/version.cmake) # $ENV{IDF_VERSION} was added after v4.3...

# Set the components to include the tests for.
set(TEST_COMPONENTS bh1750 mpu6050 mag3110 hts221 fbm320 CACHE STRING "List of components to test")
Expand Down

0 comments on commit 59eb056

Please sign in to comment.