File tree Expand file tree Collapse file tree 12 files changed +99
-0
lines changed
rtos/tests/TESTS/mbed_rtos Expand file tree Collapse file tree 12 files changed +99
-0
lines changed Original file line number Diff line number Diff line change 3
3
4
4
include (mbed_greentea )
5
5
6
+ if (MBED_GREENTEA_TEST_BAREMETAL )
7
+ set (TEST_SKIPPED "MemoryPool test cases require a RTOS to run." )
8
+ endif ()
9
+
6
10
mbed_greentea_add_test (
7
11
TEST_NAME
8
12
mbed-rtos-memorypool
9
13
TEST_SOURCES
10
14
main.cpp
15
+ TEST_SKIPPED
16
+ ${TEST_SKIPPED}
11
17
)
Original file line number Diff line number Diff line change 3
3
4
4
include (mbed_greentea )
5
5
6
+ if (DEFINED MBED_RTOS_SINGLE_THREAD OR MBED_GREENTEA_TEST_BAREMETAL )
7
+ set (TEST_SKIPPED "RTOS basic test cases require RTOS with multithread to run" )
8
+ endif ()
9
+
10
+ if (NOT "DEVICE_USTICKER=1" IN_LIST MBED_TARGET_DEFINITIONS )
11
+ set (TEST_SKIPPED "UsTicker need to be enabled for this test." )
12
+ endif ()
13
+
6
14
mbed_greentea_add_test (
7
15
TEST_NAME
8
16
mbed-rtos-basic
9
17
TEST_SOURCES
10
18
main.cpp
11
19
HOST_TESTS_DIR
12
20
"${CMAKE_CURRENT_LIST_DIR} /../../host_tests"
21
+ TEST_SKIPPED
22
+ ${TEST_SKIPPED}
13
23
)
Original file line number Diff line number Diff line change 3
3
4
4
include (mbed_greentea )
5
5
6
+ if (DEFINED MBED_RTOS_SINGLE_THREAD OR MBED_GREENTEA_TEST_BAREMETAL )
7
+ set (TEST_SKIPPED "Condition variable test cases require RTOS with multithread to run" )
8
+ endif ()
9
+
10
+ if (NOT "DEVICE_USTICKER=1" IN_LIST MBED_TARGET_DEFINITIONS )
11
+ set (TEST_SKIPPED "UsTicker need to be enabled for this test." )
12
+ endif ()
13
+
6
14
mbed_greentea_add_test (
7
15
TEST_NAME
8
16
mbed-rtos-condition-variable
9
17
TEST_SOURCES
10
18
main.cpp
19
+ TEST_SKIPPED
20
+ ${TEST_SKIPPED}
11
21
)
Original file line number Diff line number Diff line change 3
3
4
4
include (mbed_greentea )
5
5
6
+ if (NOT "DEVICE_USTICKER=1" IN_LIST MBED_TARGET_DEFINITIONS )
7
+ set (TEST_SKIPPED "UsTicker need to be enabled for this test." )
8
+ endif ()
9
+
6
10
mbed_greentea_add_test (
7
11
TEST_NAME
8
12
mbed-rtos-event-flags
9
13
TEST_SOURCES
10
14
main.cpp
15
+ TEST_SKIPPED
16
+ ${TEST_SKIPPED}
11
17
)
Original file line number Diff line number Diff line change 3
3
4
4
include (mbed_greentea )
5
5
6
+ if (DEFINED TARGET_CORTEX_A )
7
+ set (TEST_SKIPPED "test not supported for cortex-A." )
8
+ elseif (NOT "DEVICE_USTICKER=1" IN_LIST MBED_TARGET_DEFINITIONS )
9
+ set (TEST_SKIPPED "UsTicker need to be enabled for this test." )
10
+ endif ()
11
+
12
+
6
13
mbed_greentea_add_test (
7
14
TEST_NAME
8
15
mbed-rtos-heap-and-stack
9
16
TEST_SOURCES
10
17
main.cpp
18
+ TEST_SKIPPED
19
+ ${TEST_SKIPPED}
11
20
)
Original file line number Diff line number Diff line change 3
3
4
4
include (mbed_greentea )
5
5
6
+ if (DEFINED MBED_RTOS_SINGLE_THREAD OR MBED_GREENTEA_TEST_BAREMETAL )
7
+ set (TEST_SKIPPED "mail test cases require RTOS with multithread to run" )
8
+ endif ()
9
+
10
+ if (NOT "DEVICE_USTICKER=1" IN_LIST MBED_TARGET_DEFINITIONS )
11
+ set (TEST_SKIPPED "UsTicker need to be enabled for this test." )
12
+ endif ()
13
+
6
14
mbed_greentea_add_test (
7
15
TEST_NAME
8
16
mbed-rtos-mail
9
17
TEST_SOURCES
10
18
main.cpp
19
+ TEST_SKIPPED
20
+ ${TEST_SKIPPED}
11
21
)
Original file line number Diff line number Diff line change 3
3
4
4
include (mbed_greentea )
5
5
6
+ if (NOT "DEVICE_USTICKER=1" IN_LIST MBED_TARGET_DEFINITIONS )
7
+ set (TEST_SKIPPED "UsTicker need to be enabled for this test." )
8
+ endif ()
9
+
6
10
mbed_greentea_add_test (
7
11
TEST_NAME
8
12
mbed-rtos-malloc
9
13
TEST_SOURCES
10
14
main.cpp
15
+ TEST_SKIPPED
16
+ ${TEST_SKIPPED}
11
17
)
Original file line number Diff line number Diff line change 3
3
4
4
include (mbed_greentea )
5
5
6
+ if (DEFINED MBED_RTOS_SINGLE_THREAD OR MBED_GREENTEA_TEST_BAREMETAL )
7
+ set (TEST_SKIPPED "Mutex test cases require RTOS with multithread to run" )
8
+ endif ()
9
+
10
+ if (NOT "DEVICE_USTICKER=1" IN_LIST MBED_TARGET_DEFINITIONS )
11
+ set (TEST_SKIPPED "UsTicker need to be enabled for this test." )
12
+ endif ()
13
+
6
14
mbed_greentea_add_test (
7
15
TEST_NAME
8
16
mbed-rtos-mutex
9
17
TEST_SOURCES
10
18
main.cpp
19
+ TEST_SKIPPED
20
+ ${TEST_SKIPPED}
11
21
)
Original file line number Diff line number Diff line change 3
3
4
4
include (mbed_greentea )
5
5
6
+ if (DEFINED MBED_RTOS_SINGLE_THREAD OR MBED_GREENTEA_TEST_BAREMETAL )
7
+ set (TEST_SKIPPED "Queue test cases require RTOS with multithread to run" )
8
+ endif ()
9
+
10
+ if (NOT "DEVICE_USTICKER=1" IN_LIST MBED_TARGET_DEFINITIONS )
11
+ set (TEST_SKIPPED "UsTicker need to be enabled for this test." )
12
+ endif ()
13
+
6
14
mbed_greentea_add_test (
7
15
TEST_NAME
8
16
mbed-rtos-queue
9
17
TEST_SOURCES
10
18
main.cpp
19
+ TEST_SKIPPED
20
+ ${TEST_SKIPPED}
11
21
)
Original file line number Diff line number Diff line change 3
3
4
4
include (mbed_greentea )
5
5
6
+ if (NOT "DEVICE_USTICKER=1" IN_LIST MBED_TARGET_DEFINITIONS )
7
+ set (TEST_SKIPPED "UsTicker need to be enabled for this test." )
8
+ endif ()
9
+
6
10
mbed_greentea_add_test (
7
11
TEST_NAME
8
12
mbed-rtos-semaphore
9
13
TEST_SOURCES
10
14
main.cpp
15
+ TEST_SKIPPED
16
+ ${TEST_SKIPPED}
11
17
)
You can’t perform that action at this time.
0 commit comments