File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2021 ARM Limited. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ add_subdirectory (equeue )
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2021 ARM Limited. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ set (TEST_NAME equeue-unittest )
5
+
6
+ add_executable (${TEST_NAME} )
7
+
8
+ target_compile_definitions (${TEST_NAME}
9
+ PRIVATE
10
+ EQUEUE_PLATFORM_POSIX
11
+ )
12
+
13
+ target_compile_options (${TEST_NAME}
14
+ PRIVATE
15
+ "-pthread"
16
+ )
17
+
18
+ target_sources (${TEST_NAME}
19
+ PRIVATE
20
+ ${mbed-os_SOURCE_DIR}/events/source/equeue.c
21
+ test_equeue.cpp
22
+ )
23
+
24
+ target_link_libraries (${TEST_NAME}
25
+ PRIVATE
26
+ mbed-headers
27
+ mbed-stubs-events
28
+ mbed-stubs-platform
29
+ gmock_main
30
+ )
31
+
32
+ add_test (NAME "${TEST_NAME} " COMMAND ${TEST_NAME} )
33
+
34
+ set_tests_properties (${TEST_NAME} PROPERTIES LABELS "equeue" )
You can’t perform that action at this time.
0 commit comments