Skip to content

Commit 0e14973

Browse files
authored
[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`.
1 parent 78c6554 commit 0e14973

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

llvm/test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ set(LLVM_TEST_DEPENDS
7171
${LLVM_TEST_DEPENDS_COMMON}
7272
BugpointPasses
7373
LLVMWindowsDriver
74-
UnitTests
7574
bugpoint
7675
llc
7776
lli
@@ -270,10 +269,11 @@ add_lit_testsuites(LLVM ${CMAKE_CURRENT_SOURCE_DIR}
270269
${exclude_from_check_all}
271270
DEPENDS ${LLVM_TEST_DEPENDS}
272271
FOLDER "Tests/Subdirectories"
273-
SKIP "^FileCheck" "^TableGen"
272+
SKIP "^FileCheck" "^TableGen" "^Unit"
274273
)
275274
add_subdirectory(FileCheck)
276275
add_subdirectory(TableGen)
276+
add_subdirectory(Unit)
277277

278278
# Setup an alias for 'check-all'.
279279
add_custom_target(check)

llvm/test/Unit/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
add_lit_testsuite(check-llvm-unit "Running lit suite for LLVM unit tests"
2+
${CMAKE_CURRENT_BINARY_DIR}
3+
EXCLUDE_FROM_CHECK_ALL
4+
DEPENDS UnitTests
5+
)

0 commit comments

Comments
 (0)