mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #13253 from LDong-Arm/unittests_any_dir
Allow unit tests defined anywhere in mbed-ospull/13276/head
commit
29ca32e025
|
|
@ -152,7 +152,7 @@ set(TEST_SUITES)
|
||||||
|
|
||||||
# Get all matched tests.
|
# Get all matched tests.
|
||||||
file(GLOB_RECURSE unittest-file-list
|
file(GLOB_RECURSE unittest-file-list
|
||||||
"unittest.cmake"
|
"../unittest.cmake" # matches any ../**/unittest.cmake
|
||||||
)
|
)
|
||||||
|
|
||||||
if ("${unittest-file-list}" STREQUAL "")
|
if ("${unittest-file-list}" STREQUAL "")
|
||||||
|
|
@ -178,7 +178,7 @@ foreach(testfile ${unittest-file-list})
|
||||||
|
|
||||||
file(RELATIVE_PATH
|
file(RELATIVE_PATH
|
||||||
TEST_SUITE_NAME # output
|
TEST_SUITE_NAME # output
|
||||||
${PROJECT_SOURCE_DIR} # root
|
"${PROJECT_SOURCE_DIR}/.." # root
|
||||||
${TEST_SUITE_DIR} #abs dirpath
|
${TEST_SUITE_DIR} #abs dirpath
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue