mirror of
https://github.com/espressif/esp-modbus.git
synced 2026-08-03 20:24:09 +02:00
Merge branch 'bugfix/tests_dependency_issue_with_console_helper' into 'main'
fix: tests dependency issue with console helper See merge request idf/esp-modbus!176
This commit is contained in:
@@ -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,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()
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
dependencies:
|
||||
idf:
|
||||
version: ">=5.0"
|
||||
mb_console_helper:
|
||||
path: "../../components/mb_console_helper"
|
||||
Reference in New Issue
Block a user