Merge pull request #13253 from LDong-Arm/unittests_any_dir

Allow unit tests defined anywhere in mbed-os
pull/13276/head
Anna Bridge 2020-07-17 10:45:39 +01:00 committed by GitHub
commit 29ca32e025
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ set(TEST_SUITES)
# Get all matched tests.
file(GLOB_RECURSE unittest-file-list
"unittest.cmake"
"../unittest.cmake" # matches any ../**/unittest.cmake
)
if ("${unittest-file-list}" STREQUAL "")
@ -178,7 +178,7 @@ foreach(testfile ${unittest-file-list})
file(RELATIVE_PATH
TEST_SUITE_NAME # output
${PROJECT_SOURCE_DIR} # root
"${PROJECT_SOURCE_DIR}/.." # root
${TEST_SUITE_DIR} #abs dirpath
)