mbed-os/rtos/tests/TESTS/mbed_rtos/basic/CMakeLists.txt

24 lines
629 B
CMake

# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
include(mbed_greentea)
if(${MBED_C_LIB} STREQUAL "small" OR MBED_GREENTEA_TEST_BAREMETAL)
set(TEST_SKIPPED "RTOS basic test cases require RTOS with multithread to run")
endif()
if(NOT "DEVICE_USTICKER=1" IN_LIST MBED_TARGET_DEFINITIONS)
set(TEST_SKIPPED "UsTicker need to be enabled for this test.")
endif()
mbed_greentea_add_test(
TEST_NAME
mbed-rtos-basic
TEST_SOURCES
main.cpp
HOST_TESTS_DIR
"${CMAKE_CURRENT_LIST_DIR}/../../host_tests"
TEST_SKIPPED
${TEST_SKIPPED}
)