[libcxx-commits] [libcxxabi] e1173c8 - [runtimes] Use add_lit_testsuite to register lit testsuites

Petr Hosek via libcxx-commits libcxx-commits at lists.llvm.org
Fri Mar 5 10:37:31 PST 2021


Author: Petr Hosek
Date: 2021-03-05T10:37:21-08:00
New Revision: e1173c8794f4942d2cdddb090489ba5a6cc193e8

URL: https://github.com/llvm/llvm-project/commit/e1173c8794f4942d2cdddb090489ba5a6cc193e8
DIFF: https://github.com/llvm/llvm-project/commit/e1173c8794f4942d2cdddb090489ba5a6cc193e8.diff

LOG: [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

Added: 
    

Modified: 
    compiler-rt/test/CMakeLists.txt
    libcxx/test/CMakeLists.txt
    libcxxabi/test/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/CMakeLists.txt b/compiler-rt/test/CMakeLists.txt
index 27b8b9c5ef4a..e82fcb0c2eb9 100644
--- a/compiler-rt/test/CMakeLists.txt
+++ b/compiler-rt/test/CMakeLists.txt
@@ -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})

diff  --git a/libcxx/test/CMakeLists.txt b/libcxx/test/CMakeLists.txt
index 61ef4aea3c7f..0892822b943a 100644
--- a/libcxx/test/CMakeLists.txt
+++ b/libcxx/test/CMakeLists.txt
@@ -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

diff  --git a/libcxxabi/test/CMakeLists.txt b/libcxxabi/test/CMakeLists.txt
index 8dcd65d9b4b4..d85dc412ed74 100644
--- a/libcxxabi/test/CMakeLists.txt
+++ b/libcxxabi/test/CMakeLists.txt
@@ -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}")


        


More information about the libcxx-commits mailing list