fix: tests dependency issue with console helper

This commit is contained in:
aleks
2026-03-31 17:58:56 +02:00
parent a65c08e7db
commit f554e2e087
3 changed files with 6 additions and 8 deletions
-3
View File
@@ -5,9 +5,6 @@ include($ENV{IDF_PATH}/tools/cmake/project.cmake)
set(EXTRA_COMPONENT_DIRS "../test_common")
# Include console command helper component
list(APPEND EXTRA_COMPONENT_DIRS "../../components/mb_console_helper")
# The workaround for the test_utils under ESP-IDF v6.0
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER "5.5")
list(APPEND EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/test_apps/components")
+1 -5
View File
@@ -1,13 +1,9 @@
cmake_minimum_required(VERSION 3.22)
idf_component_register(SRCS "test_common.c"
INCLUDE_DIRS "include"
REQUIRES unity esp_timer mb_console_helper)
set(EXTRA_COMPONENT_DIRS)
# Include console command helper component
list(APPEND EXTRA_COMPONENT_DIRS "../../components/mb_console_helper")
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER "5.5")
list(APPEND EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/test_apps/components")
else()
+5
View File
@@ -0,0 +1,5 @@
dependencies:
idf:
version: ">=5.0"
mb_console_helper:
path: "../../components/mb_console_helper"