https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/185695
>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 1/2] [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) >From da8ba82937099c18f633516dd9ac0ac43a5e6fb1 Mon Sep 17 00:00:00 2001 From: Erick Velez <[email protected]> Date: Wed, 18 Mar 2026 19:38:30 -0700 Subject: [PATCH 2/2] create a new cmakelists.txt --- clang-tools-extra/test/CMakeLists.txt | 14 +------------- clang-tools-extra/test/Unit/CMakeLists.txt | 12 ++++++++++++ 2 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 clang-tools-extra/test/Unit/CMakeLists.txt diff --git a/clang-tools-extra/test/CMakeLists.txt b/clang-tools-extra/test/CMakeLists.txt index 391a6cc8836e6..97c7a66cd69fd 100644 --- a/clang-tools-extra/test/CMakeLists.txt +++ b/clang-tools-extra/test/CMakeLists.txt @@ -21,13 +21,6 @@ configure_lit_site_cfg( ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py ) -configure_lit_site_cfg( - ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.py.in - ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg.py - MAIN_CONFIG - ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.cfg.py - ) - set(CLANG_TOOLS_TEST_DEPS # For the clang-doc tests that emit bitcode files. llvm-bcanalyzer @@ -90,10 +83,5 @@ 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) +add_subdirectory(Unit) diff --git a/clang-tools-extra/test/Unit/CMakeLists.txt b/clang-tools-extra/test/Unit/CMakeLists.txt new file mode 100644 index 0000000000000..cd1c9ff7a473e --- /dev/null +++ b/clang-tools-extra/test/Unit/CMakeLists.txt @@ -0,0 +1,12 @@ +configure_lit_site_cfg( + ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in + ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py + MAIN_CONFIG + ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py + ) + +add_lit_testsuite(check-clang-doc-unit "Running clang-doc unit tests" + ${CMAKE_CURRENT_BINARY_DIR} + EXCLUDE_FROM_CHECK_ALL + ARGS --filter=ClangDocTests + ) _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
