[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:
parent
78c65545d4
commit
0e14973f3c
@ -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)
|
||||
|
||||
5
llvm/test/Unit/CMakeLists.txt
Normal file
5
llvm/test/Unit/CMakeLists.txt
Normal 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
|
||||
)
|
||||
Loading…
x
Reference in New Issue
Block a user