mirror of https://github.com/ARMmbed/mbed-os.git
CMake: greentea: Add skip reason to platform test
parent
40253b2a54
commit
16c9058fd1
|
|
@ -3,9 +3,15 @@
|
|||
|
||||
include(mbed_greentea)
|
||||
|
||||
if(MBED_GREENTEA_TEST_BAREMETAL)
|
||||
set(TEST_SKIPPED "atomic test cases require a RTOS to run.")
|
||||
endif()
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
mbed-platform-atomic
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_SKIPPED
|
||||
${TEST_SKIPPED}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -3,6 +3,10 @@
|
|||
|
||||
include(mbed_greentea)
|
||||
|
||||
if(NOT DEFINED MBED_CONF_PLATFORM_CRASH_CAPTURE_ENABLED)
|
||||
set(TEST_SKIPPED "crash_reporting test not supported.")
|
||||
endif()
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
mbed-platform-crash-reporting
|
||||
|
|
@ -10,4 +14,6 @@ mbed_greentea_add_test(
|
|||
main.cpp
|
||||
HOST_TESTS_DIR
|
||||
"${CMAKE_CURRENT_LIST_DIR}/../../host_tests"
|
||||
TEST_SKIPPED
|
||||
${TEST_SKIPPED}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -3,9 +3,16 @@
|
|||
|
||||
include(mbed_greentea)
|
||||
|
||||
if(NOT DEFINED MBED_CPU_STATS_ENABLED OR NOT "DEVICE_LPTICKER=1" IN_LIST MBED_TARGET_DEFINITIONS
|
||||
OR NOT "DEVICE_SLEEP=1" IN_LIST MBED_TARGET_DEFINITIONS)
|
||||
set(TEST_SKIPPED "Stats cpu test not supported.")
|
||||
endif()
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
mbed-platform-stats-cpu
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_SKIPPED
|
||||
${TEST_SKIPPED}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -3,9 +3,15 @@
|
|||
|
||||
include(mbed_greentea)
|
||||
|
||||
if(NOT DEFINED MBED_HEAP_STATS_ENABLED)
|
||||
set(TEST_SKIPPED "Stats heap test not supported.")
|
||||
endif()
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
mbed-platform-stats-heap
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_SKIPPED
|
||||
${TEST_SKIPPED}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -3,9 +3,15 @@
|
|||
|
||||
include(mbed_greentea)
|
||||
|
||||
if(NOT DEFINED MBED_SYS_STATS_ENABLED)
|
||||
set(TEST_SKIPPED "System stats test not supported.")
|
||||
endif()
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
mbed-platform-stats-sys
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_SKIPPED
|
||||
${TEST_SKIPPED}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -3,9 +3,15 @@
|
|||
|
||||
include(mbed_greentea)
|
||||
|
||||
if(NOT DEFINED MBED_THREAD_STATS_ENABLED)
|
||||
set(TEST_SKIPPED "Thread stats test not supported.")
|
||||
endif()
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
mbed-platform-stats-thread
|
||||
TEST_SOURCES
|
||||
main.cpp
|
||||
TEST_SKIPPED
|
||||
${TEST_SKIPPED}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -3,6 +3,10 @@
|
|||
|
||||
include(mbed_greentea)
|
||||
|
||||
if(DEFINED TARGET_ARM_FM)
|
||||
set(TEST_SKIPPED "Wait ns test not supported.")
|
||||
endif()
|
||||
|
||||
mbed_greentea_add_test(
|
||||
TEST_NAME
|
||||
mbed-platform-wait-ns
|
||||
|
|
@ -10,4 +14,6 @@ mbed_greentea_add_test(
|
|||
main.cpp
|
||||
HOST_TESTS_DIR
|
||||
"${CMAKE_CURRENT_LIST_DIR}/../../host_tests"
|
||||
TEST_SKIPPED
|
||||
${TEST_SKIPPED}
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue