From e8303a941851160ec0c4b1bc4da34e31d369b746 Mon Sep 17 00:00:00 2001 From: ismail Date: Mon, 3 Mar 2025 16:20:29 +0300 Subject: [PATCH] Fix test directory structure. --- test/CMakeLists.txt | 11 +++-------- test/main/CMakeLists.txt | 3 --- test/{main => }/test_relay_chn.c | 0 3 files changed, 3 insertions(+), 11 deletions(-) delete mode 100644 test/main/CMakeLists.txt rename test/{main => }/test_relay_chn.c (100%) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index b596410..b9f3335 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,8 +1,3 @@ -# The following lines of boilerplate have to be in your project's CMakeLists -# in this exact order for cmake to work correctly -cmake_minimum_required(VERSION 3.5) - -set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components" - "../../relay_chn") -include($ENV{IDF_PATH}/tools/cmake/project.cmake) -project(relay_chn_test) \ No newline at end of file +idf_component_register(SRCS_DIRS "." + PRIV_INCLUDE_DIRS "." + PRIV_REQUIRES unity relay_chn) \ No newline at end of file diff --git a/test/main/CMakeLists.txt b/test/main/CMakeLists.txt deleted file mode 100644 index 8f4dc87..0000000 --- a/test/main/CMakeLists.txt +++ /dev/null @@ -1,3 +0,0 @@ -idf_component_register(SRCS_DIRS "." - PRIV_INCLUDE_DIRS "." - PRIV_REQUIRES unity test_utils relay_chn) \ No newline at end of file diff --git a/test/main/test_relay_chn.c b/test/test_relay_chn.c similarity index 100% rename from test/main/test_relay_chn.c rename to test/test_relay_chn.c