Skip to content

Commit

Permalink
[runtimes] Use add_lit_testsuite to register lit testsuites
Browse files Browse the repository at this point in the history
The runtimes build uses variables set by add_lit_testsuite to collect
testsuites from all the runtimes.

Differential Revision: https://reviews.llvm.org/D97913
  • Loading branch information
petrhosek committed Mar 5, 2021
1 parent c964741 commit e1173c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler-rt/test/CMakeLists.txt
Expand Up @@ -87,7 +87,7 @@ if(COMPILER_RT_STANDALONE_BUILD)
# introduce a rule to run to run all of them.
get_property(LLVM_LIT_TESTSUITES GLOBAL PROPERTY LLVM_LIT_TESTSUITES)
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"
${LLVM_LIT_TESTSUITES}
DEPENDS ${LLVM_LIT_DEPENDS})
Expand Down
2 changes: 1 addition & 1 deletion libcxx/test/CMakeLists.txt
Expand Up @@ -103,7 +103,7 @@ if (LIBCXX_INCLUDE_TESTS)
DEPENDS cxx ${LIBCXX_TEST_DEPS}
COMMENT "Builds dependencies required to run the test suite.")

add_lit_target(check-cxx
add_lit_testsuite(check-cxx
"Running libcxx tests"
${CMAKE_CURRENT_BINARY_DIR}
DEPENDS cxx-test-depends
Expand Down
2 changes: 1 addition & 1 deletion libcxxabi/test/CMakeLists.txt
Expand Up @@ -76,7 +76,7 @@ configure_lit_site_cfg(
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
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}
DEPENDS ${LIBCXXABI_TEST_DEPS}
PARAMS "${LIBCXXABI_TEST_PARAMS}")

0 comments on commit e1173c8

Please sign in to comment.