Skip to content

Commit

Permalink
Merge pull request #13253 from LDong-Arm/unittests_any_dir
Browse files Browse the repository at this point in the history
Allow unit tests defined anywhere in mbed-os
  • Loading branch information
adbridge authored Jul 17, 2020
2 parents a2ada74 + a884f1a commit 29ca32e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UNITTESTS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 "")
Expand All @@ -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
)

Expand Down

0 comments on commit 29ca32e

Please sign in to comment.