Skip to content

Commit 7acd5b4

Browse files
authored
Merge pull request #14929 from LDong-Arm/move_target_h
Unit tests: Move target_h/ stubs into libraries' test doubles
2 parents 7214fe9 + 81eb6cb commit 7acd5b4

File tree

104 files changed

+72
-171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+72
-171
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ matrix:
244244
- >-
245245
git diff --name-only --diff-filter=d FETCH_HEAD..HEAD \
246246
| ( grep '.*[\\|\/]PinNames.h$' || true ) \
247-
| while read file; do python ./hal/tests/pinvalidate/pinvalidate.py -vfp "${file}"; done
247+
| while read file; do python ./hal/tests/pinvalidate/pinvalidate.py -vvvfp "${file}"; done
248248
- git diff --exit-code --diff-filter=d --color
249249

250250
### CMake Check ###

UNITTESTS/stubs/CMakeLists.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,16 @@
33

44
add_library(mbed-stubs-headers INTERFACE)
55
add_library(mbed-headers INTERFACE)
6-
add_library(mbed-headers-base INTERFACE)
76

87
target_link_libraries(mbed-headers
98
INTERFACE
10-
mbed-headers-base
119
mbed-headers-platform
1210
mbed-headers-drivers
1311
mbed-headers-hal
1412
mbed-headers-events
1513
mbed-headers-rtos
1614
)
1715

18-
target_include_directories(mbed-headers-base
19-
INTERFACE
20-
${mbed-os_SOURCE_DIR}/UNITTESTS/target_h
21-
${mbed-os_SOURCE_DIR}/UNITTESTS/target_h/platform
22-
${mbed-os_SOURCE_DIR}/UNITTESTS/target_h/platform/cxxsupport
23-
${mbed-os_SOURCE_DIR}/UNITTESTS/target_h/drivers
24-
${mbed-os_SOURCE_DIR}/UNITTESTS/target_h/rtos/include
25-
${mbed-os_SOURCE_DIR}/UNITTESTS/target_h/rtos
26-
${mbed-os_SOURCE_DIR}/UNITTESTS/target_h/sys
27-
)
28-
29-
3016
target_include_directories(mbed-headers
3117
INTERFACE
3218
${mbed-os_SOURCE_DIR}/features

UNITTESTS/target_h/arm_math.h

Lines changed: 0 additions & 16 deletions
This file was deleted.

UNITTESTS/target_h/mbed.h

Lines changed: 0 additions & 34 deletions
This file was deleted.

UNITTESTS/target_h/nsapi_ppp.h

Lines changed: 0 additions & 16 deletions
This file was deleted.

UNITTESTS/target_h/sys/syslimits.h

Lines changed: 0 additions & 17 deletions
This file was deleted.

cmsis/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
add_subdirectory(CMSIS_5)
55
add_subdirectory(device)
66

7+
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)
8+
add_subdirectory(tests/UNITTESTS/doubles)
9+
endif()

cmsis/tests/UNITTESTS/.mbedignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright (c) 2021 Arm Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
add_library(mbed-headers-cmsis INTERFACE)
5+
6+
target_include_directories(mbed-headers-cmsis
7+
INTERFACE
8+
.
9+
)
File renamed without changes.

0 commit comments

Comments
 (0)