Skip to content

Commit e1173c8

Browse files
committed
[runtimes] Use add_lit_testsuite to register lit testsuites
The runtimes build uses variables set by add_lit_testsuite to collect testsuites from all the runtimes. Differential Revision: https://reviews.llvm.org/D97913
1 parent c964741 commit e1173c8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler-rt/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ if(COMPILER_RT_STANDALONE_BUILD)
8787
# introduce a rule to run to run all of them.
8888
get_property(LLVM_LIT_TESTSUITES GLOBAL PROPERTY LLVM_LIT_TESTSUITES)
8989
get_property(LLVM_LIT_DEPENDS GLOBAL PROPERTY LLVM_LIT_DEPENDS)
90-
add_lit_target(check-compiler-rt
90+
add_lit_testsuite(check-compiler-rt
9191
"Running all regression tests"
9292
${LLVM_LIT_TESTSUITES}
9393
DEPENDS ${LLVM_LIT_DEPENDS})

libcxx/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ if (LIBCXX_INCLUDE_TESTS)
103103
DEPENDS cxx ${LIBCXX_TEST_DEPS}
104104
COMMENT "Builds dependencies required to run the test suite.")
105105

106-
add_lit_target(check-cxx
106+
add_lit_testsuite(check-cxx
107107
"Running libcxx tests"
108108
${CMAKE_CURRENT_BINARY_DIR}
109109
DEPENDS cxx-test-depends

libcxxabi/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ configure_lit_site_cfg(
7676
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
7777
MAIN_CONFIG "${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py")
7878

79-
add_lit_target(check-cxxabi "Running libcxxabi tests"
79+
add_lit_testsuite(check-cxxabi "Running libcxxabi tests"
8080
${CMAKE_CURRENT_BINARY_DIR}
8181
DEPENDS ${LIBCXXABI_TEST_DEPS}
8282
PARAMS "${LIBCXXABI_TEST_PARAMS}")

0 commit comments

Comments
 (0)