[PATCH] D84176: [CMake][CTE] Add "check-clang-tools-..." targets to test only a particular Clang extra tool
Whisperity via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 20 08:17:38 PDT 2020
whisperity created this revision.
whisperity added a reviewer: klimek.
whisperity added a project: clang-tools-extra.
Herald added subscribers: cfe-commits, martong, gamesh411, Szelethus, dkrupp, rnkovacs, mgorny.
Herald added a project: clang.
Create targets `check-clang-tools-clang-tidy`, `check-clang-tools-clang-query` similar to how `check-clang-sema`, `check-clang-parser`, etc. are auto-generated from the directory structure.
This allows running only a particular sub-tool's tests, not having to wait through the //entire// `check-clang-tools`'s execution.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D84176
Files:
clang-tools-extra/test/CMakeLists.txt
Index: clang-tools-extra/test/CMakeLists.txt
===================================================================
--- clang-tools-extra/test/CMakeLists.txt
+++ clang-tools-extra/test/CMakeLists.txt
@@ -90,3 +90,7 @@
)
set_target_properties(check-clang-tools PROPERTIES FOLDER "Clang extra tools' tests")
+
+add_lit_testsuites(CLANG-TOOLS ${CMAKE_CURRENT_SOURCE_DIR}
+ DEPENDS ${CLANG_TOOLS_TEST_DEPS}
+ )
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84176.279256.patch
Type: text/x-patch
Size: 412 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200720/9ddc4989/attachment.bin>
More information about the cfe-commits
mailing list