FreeRTOS-Kernel/FreeRTOS/Test/Target/boards/pico/CMakeLists.txt
ActoryOu 67911f83a6
Create SMP on target test framework. (#911)
* Framework initialization.

* Move testRunner.c to test case subfolder.

* Update README doc and formatting.

* Add default configurations in test_config.h.

* Fix License & formatting check.

* Fix typo.

* Move setup/teardown functions to main.c file.

* Move setup/teardown functions back.

* Update README doc.

* Patch for comments.

* Correct test runner file name.

* Move test_config.h to the end of FreeRTOSConfig.h.

* Add undef in test_config.h and description in README doc.

* Correct the file format.

* Fix chinglee-iot comments.

* Code review suggestions

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>

* Fix spell check

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>

---------

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com>
2023-03-06 13:17:27 +05:30

34 lines
No EOL
1 KiB
CMake

# Note that this file can be used as a top level CMakeLists.txt to build all the Demos (it includes
# them all, but they are usable in their own right, which is why no common work is done here)
# The tests are defined here: https://quip-amazon.com/78LdAeL2txGu/Test-Plan
cmake_minimum_required(VERSION 3.13)
set(UNITY_DIR ${CMAKE_CURRENT_LIST_DIR}/../../../CMock/CMock/vendor/unity)
include(pico_sdk_import.cmake)
PROJECT(Tests)
include(CTest)
add_library(unity STATIC
"${UNITY_DIR}/src/unity.c")
target_include_directories(unity PUBLIC
"${UNITY_DIR}/src/")
# Find all subdirectories in tests folder then add them by add_subdirectory
file(GLOB_RECURSE SUBDIRS_TESTS_FILES tests/*)
SET(test_dir_list "")
foreach(file_name ${SUBDIRS_TESTS_FILES})
get_filename_component( dir_path ${file_name} PATH )
LIST( APPEND test_dir_list ${dir_path})
endforeach()
LIST(REMOVE_DUPLICATES test_dir_list)
foreach(dir_name ${test_dir_list})
message( STATUS "add subdirectory " ${dir_name} )
add_subdirectory( ${dir_name} )
endforeach()