CMake: greentea: Add skip reason to rtos test

pull/14951/head
Rajkumar Kanagaraj 2021-08-23 13:47:14 +01:00
parent 174e01667f
commit 5d31b71f81
12 changed files with 99 additions and 0 deletions

View File

@ -3,9 +3,15 @@
include(mbed_greentea)
if(MBED_GREENTEA_TEST_BAREMETAL)
set(TEST_SKIPPED "MemoryPool test cases require a RTOS to run.")
endif()
mbed_greentea_add_test(
TEST_NAME
mbed-rtos-memorypool
TEST_SOURCES
main.cpp
TEST_SKIPPED
${TEST_SKIPPED}
)

View File

@ -3,6 +3,14 @@
include(mbed_greentea)
if(DEFINED MBED_RTOS_SINGLE_THREAD 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
@ -10,4 +18,6 @@ mbed_greentea_add_test(
main.cpp
HOST_TESTS_DIR
"${CMAKE_CURRENT_LIST_DIR}/../../host_tests"
TEST_SKIPPED
${TEST_SKIPPED}
)

View File

@ -3,9 +3,19 @@
include(mbed_greentea)
if(DEFINED MBED_RTOS_SINGLE_THREAD OR MBED_GREENTEA_TEST_BAREMETAL)
set(TEST_SKIPPED "Condition variable 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-condition-variable
TEST_SOURCES
main.cpp
TEST_SKIPPED
${TEST_SKIPPED}
)

View File

@ -3,9 +3,15 @@
include(mbed_greentea)
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-event-flags
TEST_SOURCES
main.cpp
TEST_SKIPPED
${TEST_SKIPPED}
)

View File

@ -3,9 +3,18 @@
include(mbed_greentea)
if(DEFINED TARGET_CORTEX_A)
set(TEST_SKIPPED "test not supported for cortex-A.")
elseif(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-heap-and-stack
TEST_SOURCES
main.cpp
TEST_SKIPPED
${TEST_SKIPPED}
)

View File

@ -3,9 +3,19 @@
include(mbed_greentea)
if(DEFINED MBED_RTOS_SINGLE_THREAD OR MBED_GREENTEA_TEST_BAREMETAL)
set(TEST_SKIPPED "mail 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-mail
TEST_SOURCES
main.cpp
TEST_SKIPPED
${TEST_SKIPPED}
)

View File

@ -3,9 +3,15 @@
include(mbed_greentea)
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-malloc
TEST_SOURCES
main.cpp
TEST_SKIPPED
${TEST_SKIPPED}
)

View File

@ -3,9 +3,19 @@
include(mbed_greentea)
if(DEFINED MBED_RTOS_SINGLE_THREAD OR MBED_GREENTEA_TEST_BAREMETAL)
set(TEST_SKIPPED "Mutex 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-mutex
TEST_SOURCES
main.cpp
TEST_SKIPPED
${TEST_SKIPPED}
)

View File

@ -3,9 +3,19 @@
include(mbed_greentea)
if(DEFINED MBED_RTOS_SINGLE_THREAD OR MBED_GREENTEA_TEST_BAREMETAL)
set(TEST_SKIPPED "Queue 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-queue
TEST_SOURCES
main.cpp
TEST_SKIPPED
${TEST_SKIPPED}
)

View File

@ -3,9 +3,15 @@
include(mbed_greentea)
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-semaphore
TEST_SOURCES
main.cpp
TEST_SKIPPED
${TEST_SKIPPED}
)

View File

@ -3,9 +3,15 @@
include(mbed_greentea)
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-signals
TEST_SOURCES
main.cpp
TEST_SKIPPED
${TEST_SKIPPED}
)

View File

@ -3,6 +3,14 @@
include(mbed_greentea)
if(DEFINED MBED_RTOS_SINGLE_THREAD 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-threads
@ -10,4 +18,6 @@ mbed_greentea_add_test(
.
TEST_SOURCES
main.cpp
TEST_SKIPPED
${TEST_SKIPPED}
)