[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
This commit is contained in:
Petr Hosek 2021-03-03 22:40:11 -08:00
parent c964741996
commit e1173c8794
3 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ if(COMPILER_RT_STANDALONE_BUILD)
# introduce a rule to run to run all of them. # introduce a rule to run to run all of them.
get_property(LLVM_LIT_TESTSUITES GLOBAL PROPERTY LLVM_LIT_TESTSUITES) get_property(LLVM_LIT_TESTSUITES GLOBAL PROPERTY LLVM_LIT_TESTSUITES)
get_property(LLVM_LIT_DEPENDS GLOBAL PROPERTY LLVM_LIT_DEPENDS) get_property(LLVM_LIT_DEPENDS GLOBAL PROPERTY LLVM_LIT_DEPENDS)
add_lit_target(check-compiler-rt add_lit_testsuite(check-compiler-rt
"Running all regression tests" "Running all regression tests"
${LLVM_LIT_TESTSUITES} ${LLVM_LIT_TESTSUITES}
DEPENDS ${LLVM_LIT_DEPENDS}) DEPENDS ${LLVM_LIT_DEPENDS})

View File

@ -103,7 +103,7 @@ if (LIBCXX_INCLUDE_TESTS)
DEPENDS cxx ${LIBCXX_TEST_DEPS} DEPENDS cxx ${LIBCXX_TEST_DEPS}
COMMENT "Builds dependencies required to run the test suite.") COMMENT "Builds dependencies required to run the test suite.")
add_lit_target(check-cxx add_lit_testsuite(check-cxx
"Running libcxx tests" "Running libcxx tests"
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS cxx-test-depends DEPENDS cxx-test-depends

View File

@ -76,7 +76,7 @@ configure_lit_site_cfg(
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
MAIN_CONFIG "${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py") MAIN_CONFIG "${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py")
add_lit_target(check-cxxabi "Running libcxxabi tests" add_lit_testsuite(check-cxxabi "Running libcxxabi tests"
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS ${LIBCXXABI_TEST_DEPS} DEPENDS ${LIBCXXABI_TEST_DEPS}
PARAMS "${LIBCXXABI_TEST_PARAMS}") PARAMS "${LIBCXXABI_TEST_PARAMS}")