D19673: Discovered unit-tests using bracket arguments and/or listed in files other than CTestTestFile.cmake

Thibault North noreply at phabricator.kde.org
Mon Mar 11 08:26:49 GMT 2019


tnorth created this revision.
tnorth added reviewers: apol, kfunk.
Herald added a project: KDevelop.
Herald added a subscriber: kdevelop-devel.
tnorth requested review of this revision.

REVISION SUMMARY
  When using gtest_discover_tests(), add_test() directives are present in various .cmake files. To date, Kdevelop searches for unit-tests does not follow include() directives present in the main CTestTestfile.cmake, leading to no unit-tests being shown.
  Additionally, the bracket arguments of CMake is not enabled for parsing tests arguments.
  
  This patch enables them, and follows include() directives.

REPOSITORY
  R32 KDevelop

REVISION DETAIL
  https://phabricator.kde.org/D19673

AFFECTED FILES
  plugins/cmake/cmakeutils.cpp
  plugins/cmake/cmakeutils.h
  plugins/cmake/parser/cmakelistsparser.cpp

To: tnorth, apol, kfunk
Cc: kdevelop-devel, gennad, glebaccon, domson, antismap, iodelay, alexeymin, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20190311/ef132ff1/attachment.html>


More information about the KDevelop-devel mailing list