diff --git a/libcxx/docs/TestingLibcxx.rst b/libcxx/docs/TestingLibcxx.rst --- a/libcxx/docs/TestingLibcxx.rst +++ b/libcxx/docs/TestingLibcxx.rst @@ -27,12 +27,12 @@ After building libc++, you can run parts of the libc++ test suite by simply running ``llvm-lit`` on a specified test or directory. If you're unsure whether the required libraries have been built, you can use the -`check-cxx-deps` target. For example: +`cxx-test-depends` target. For example: .. code-block:: bash $ cd - $ make -C check-cxx-deps # If you want to make sure the targets get rebuilt + $ make -C cxx-test-depends # If you want to make sure the targets get rebuilt $ /bin/llvm-lit -sv libcxx/test/std/re # Run all of the std::regex tests $ /bin/llvm-lit -sv libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp # Run a single test $ /bin/llvm-lit -sv libcxx/test/std/atomics libcxx/test/std/threads # Test std::thread and std::atomic @@ -87,7 +87,7 @@ .. code-block:: bash $ cmake -DLIBCXX_TEST_CONFIG= - $ make -C check-cxx-deps + $ make -C cxx-test-depends $ /bin/llvm-lit -sv libcxx/test # will use your custom config file diff --git a/libcxx/test/CMakeLists.txt b/libcxx/test/CMakeLists.txt --- a/libcxx/test/CMakeLists.txt +++ b/libcxx/test/CMakeLists.txt @@ -99,14 +99,14 @@ ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg MAIN_CONFIG "${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py") - add_custom_target(check-cxx-deps + add_custom_target(cxx-test-depends DEPENDS cxx ${LIBCXX_TEST_DEPS} COMMENT "Builds dependencies required to run the test suite.") add_lit_target(check-cxx "Running libcxx tests" ${CMAKE_CURRENT_BINARY_DIR} - DEPENDS check-cxx-deps + DEPENDS cxx-test-depends PARAMS "${LIBCXX_TEST_PARAMS}") endif()