Move test related code and the testsuite away from tests/ and make it a proper subsystem. The way tests were integrate in the tree was not obvious and actual tests were intermixed with the testsuite code. This will allow us to have trees with the testcode and without the samples by just remove the folders tests/ and samples, needed for isolating actual code from test/sample code. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
13 lines
366 B
CMake
13 lines
366 B
CMake
cmake_minimum_required(VERSION 3.13.1)
|
|
if(BOARD STREQUAL unit_testing)
|
|
list(APPEND SOURCES src/main.c)
|
|
|
|
include($ENV{ZEPHYR_BASE}/subsys/testsuite/unittest.cmake)
|
|
project(base)
|
|
else()
|
|
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
|
|
project(base)
|
|
|
|
FILE(GLOB app_sources src/*.c)
|
|
target_sources(app PRIVATE ${app_sources})
|
|
endif()
|