zephyr/subsys/testsuite/ztest/CMakeLists.txt
Anas Nashif 996c8457d7 ztest: remove old ztest api
Remove old Ztest API entirely. New API is the now the default.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-10-20 15:04:29 +02:00

32 lines
778 B
CMake

# SPDX-License-Identifier: Apache-2.0
zephyr_syscall_header(
${ZEPHYR_BASE}/subsys/testsuite/ztest/include/zephyr/ztest_error_hook.h
${ZEPHYR_BASE}/subsys/testsuite/ztest/include/zephyr/ztest_test.h
)
zephyr_include_directories(
${ZEPHYR_BASE}/subsys/testsuite/include
${ZEPHYR_BASE}/subsys/testsuite/ztest/include
)
if(DEFINED TC_RUNID)
zephyr_compile_definitions(TC_RUNID=${TC_RUNID})
endif()
zephyr_library()
zephyr_library_sources(
src/ztest.c
src/ztest_error_hook.c
src/ztest_rules.c
)
zephyr_library_sources_ifdef(CONFIG_ZTEST_MOCKING src/ztest_mock.c)
zephyr_library_sources_ifdef(CONFIG_ZTRESS src/ztress.c)
if(CONFIG_ARCH_POSIX)
zephyr_library_sources(src/ztest_posix.c)
else()
zephyr_library_sources(src/ztest_defaults.c)
endif()