Skip to content

Commit 825e349

Browse files
committed
Unit tests: Move hal target_h stubs
Stubs previously in UNITTESTS/target_h/ have the same names as regular Mbed OS headers, intending to override the latter directly. We move hal target_h stubs into hal/tests/UNITTESTS/doubles/. Note: In Mbed OS, the standard include format requires each header to be prefixed with its module name, for example "hal/gpio_api.h". This requires headers to be organized in a module directory. But unit tests stubs for hal correspond to what a real Mbed target would have implemented (in a non-test scenario), and targets do not currently put headers in hal/, so we similary put stub headers directly in hal/tests/UNITTESTS/doubles/ instead of add a hal/ subdirectory there.
1 parent c775e30 commit 825e349

File tree

6 files changed

+1
-0
lines changed

6 files changed

+1
-0
lines changed

hal/tests/UNITTESTS/doubles/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ add_library(mbed-headers-hal INTERFACE)
55

66
target_include_directories(mbed-headers-hal
77
INTERFACE
8+
.
89
${mbed-os_SOURCE_DIR}/hal
910
${mbed-os_SOURCE_DIR}/hal/include
1011
)
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)