[NFC][LLVM-Tests] Specialize test suite for LLVM unit tests (#161442)

Remove `UnitTests` from LLVM_TEST_DEPENDS_COMMON and create a
specialized lit suite for unit-tests and that depends only on
`UnitTests`.
This commit is contained in:
Rahul Joshi 2025-10-01 13:06:16 -07:00 committed by GitHub
parent 78c65545d4
commit 0e14973f3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -71,7 +71,6 @@ set(LLVM_TEST_DEPENDS
${LLVM_TEST_DEPENDS_COMMON}
BugpointPasses
LLVMWindowsDriver
UnitTests
bugpoint
llc
lli
@ -270,10 +269,11 @@ add_lit_testsuites(LLVM ${CMAKE_CURRENT_SOURCE_DIR}
${exclude_from_check_all}
DEPENDS ${LLVM_TEST_DEPENDS}
FOLDER "Tests/Subdirectories"
SKIP "^FileCheck" "^TableGen"
SKIP "^FileCheck" "^TableGen" "^Unit"
)
add_subdirectory(FileCheck)
add_subdirectory(TableGen)
add_subdirectory(Unit)
# Setup an alias for 'check-all'.
add_custom_target(check)

View File

@ -0,0 +1,5 @@
add_lit_testsuite(check-llvm-unit "Running lit suite for LLVM unit tests"
${CMAKE_CURRENT_BINARY_DIR}
EXCLUDE_FROM_CHECK_ALL
DEPENDS UnitTests
)