Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Contributor Author

@LDong-Arm LDong-Arm Jul 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The relative path (to mbed-os) is the binary name of a test case. ${PROJECT_SOURCE_DIR} is UNITTESTS.

${TEST_SUITE_DIR} #abs dirpath
)

Expand Down