https://github.com/evelez7 created 
https://github.com/llvm/llvm-project/pull/185695

clang-doc unit tests are packaged in a target that contains all other
tools' unit tests so filter to only run clang-doc tests


>From 78f77aac4998b7b2258b6567f2b420f38c6d8679 Mon Sep 17 00:00:00 2001
From: Erick Velez <[email protected]>
Date: Tue, 10 Mar 2026 10:09:09 -0700
Subject: [PATCH] [clang-doc] Add individual target for unit tests

clang-doc unit tests are packaged in a target that contains all other
tools' unit tests so filter to only run clang-doc tests
---
 clang-tools-extra/test/CMakeLists.txt | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/clang-tools-extra/test/CMakeLists.txt 
b/clang-tools-extra/test/CMakeLists.txt
index 78447e7a00db8..391a6cc8836e6 100644
--- a/clang-tools-extra/test/CMakeLists.txt
+++ b/clang-tools-extra/test/CMakeLists.txt
@@ -90,4 +90,10 @@ add_lit_testsuites(CLANG-EXTRA ${CMAKE_CURRENT_SOURCE_DIR}
    SKIP "^clang-doc"
   )
 
+add_lit_testsuite(check-clang-doc-unit "Running clang-doc unit tests"
+  ${CMAKE_CURRENT_BINARY_DIR}/Unit
+  EXCLUDE_FROM_CHECK_ALL
+  ARGS --filter=ClangDocTests
+  )
+
 add_subdirectory(clang-doc)

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to