adds initial testing setup

This commit is contained in:
2026-03-21 16:34:08 +01:00
parent d85f524d07
commit dfa1c2182c
4 changed files with 176 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ endif()
###############################################################################
project(threadx_demo C ASM)
option(NX_DEBUG "compile netxduo debug output in" OFF)
option(ENABLE_THREADX_REGRESSION "Build ThreadX regression test executables" OFF)
set(TARGET_MEM "ram" CACHE STRING "memory map to use")
set(CMAKE_EXECUTABLE_SUFFIX_C ".elf")
@@ -88,6 +89,10 @@ function(setup_target TARGET)
)
endfunction()
if(ENABLE_THREADX_REGRESSION)
add_subdirectory(test)
endif()
setup_target(thread_demo LIBRARIES threadx SOURCES src/thread_demo/main.c)
setup_target(tcp_demo LIBRARIES threadx netxduo SOURCES src/tcp_demo/main.c)
setup_target(smp_demo LIBRARIES threadx_smp SOURCES src/thread_demo/main.c)