Skip to content

Commit 29ca32e

Browse files
authored
Merge pull request #13253 from LDong-Arm/unittests_any_dir
Allow unit tests defined anywhere in mbed-os
2 parents a2ada74 + a884f1a commit 29ca32e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UNITTESTS/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ set(TEST_SUITES)
152152

153153
# Get all matched tests.
154154
file(GLOB_RECURSE unittest-file-list
155-
"unittest.cmake"
155+
"../unittest.cmake" # matches any ../**/unittest.cmake
156156
)
157157

158158
if ("${unittest-file-list}" STREQUAL "")
@@ -178,7 +178,7 @@ foreach(testfile ${unittest-file-list})
178178

179179
file(RELATIVE_PATH
180180
TEST_SUITE_NAME # output
181-
${PROJECT_SOURCE_DIR} # root
181+
"${PROJECT_SOURCE_DIR}/.." # root
182182
${TEST_SUITE_DIR} #abs dirpath
183183
)
184184

0 commit comments

Comments
 (0)