[libcxx-commits] [PATCH] D87054: Include libcxx and libcxxabi tests in check-all

Azharuddin Mohammed via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Sep 2 13:40:27 PDT 2020


azharudd created this revision.
azharudd added a reviewer: ldionne.
Herald added subscribers: libcxx-commits, dexonsmith, mgorny.
Herald added projects: libc++, libc++abi.
Herald added a reviewer: libc++.
Herald added a reviewer: libc++abi.
azharudd requested review of this revision.

If these projects are enabled, we should be able to run their tests as part of
check-all itself and not have to invoke them separately. This was the behavior
before, but that changed with 6f69318c72 <https://reviews.llvm.org/rG6f69318c7248275b509ecf0f88eb2ba725aaeb82>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87054

Files:
  libcxx/test/CMakeLists.txt
  libcxxabi/test/CMakeLists.txt


Index: libcxxabi/test/CMakeLists.txt
===================================================================
--- libcxxabi/test/CMakeLists.txt
+++ libcxxabi/test/CMakeLists.txt
@@ -1,4 +1,4 @@
-include(AddLLVM) # for configure_lit_site_cfg and add_lit_target
+include(AddLLVM) # for configure_lit_site_cfg and add_lit_testsuite
 macro(pythonize_bool var)
   if (${var})
     set(${var} True)
@@ -76,7 +76,7 @@
   ${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}")
Index: libcxx/test/CMakeLists.txt
===================================================================
--- libcxx/test/CMakeLists.txt
+++ libcxx/test/CMakeLists.txt
@@ -103,7 +103,7 @@
 endif()
 
 if (LIBCXX_INCLUDE_TESTS)
-  include(AddLLVM) # for configure_lit_site_cfg and add_lit_target
+  include(AddLLVM) # for configure_lit_site_cfg and add_lit_testsuite
 
   configure_lit_site_cfg(
     "${LIBCXX_TEST_CONFIG}"
@@ -114,7 +114,7 @@
     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 check-cxx-deps


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87054.289557.patch
Type: text/x-patch
Size: 1419 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200902/9a58fc58/attachment.bin>


More information about the libcxx-commits mailing list