cmake // Added Ctest support for unittests#882
Conversation
|
By analyzing the blame information on this pull request, we identified @billhoffman, @Sukender and @Lekensteyn to be potential reviewers |
|
@bradking Brad, could you please review and comment? Thank you! |
There was a problem hiding this comment.
The CTest module calls enable_testing for us so we don't need to call it here.
There was a problem hiding this comment.
@bradking From which version? Looks I'm a bit outdated here.
There was a problem hiding this comment.
Note that it depends on BUILD_TESTING.
|
@bradking updated and rebased into single commit. |
|
The include(CTest)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()However, curl is currently defining its own BUILD_CURL_TESTS option. It also has a code path that includes the |
|
@bradking So what is your proposal, exactly? Should I remove BUILD_CURL_TESTS and BUILD_DASHBOARD_REPORTS anywhere in scripts? |
That would be the simplest solution. Since the CMake files still warn that they are poorly maintained I don't think anyone expects stability in the current options. |
|
@bradking updated. |
|
The change itself looks good. Please squash in the fixups and revise the commit message to explain the new logic change. |
tests and enabling CTest integration. Options BUILD_CURL_TESTS and BUILD_DASHBOARD_REPORTS was removed.
|
Done, thanks! Small nit: please make the commit message to follow our commit styles and I'll have an easier job merging your work! |
Hi all,
I've enabled ctest verification for cmake builds and
tests/unitfolder.Now it is possible after build run
on Linux
make teston Windows
ctest -VV -C <Debug|Release>