diff --git a/libcxx/docs/TestingLibcxx.rst b/libcxx/docs/TestingLibcxx.rst --- a/libcxx/docs/TestingLibcxx.rst +++ b/libcxx/docs/TestingLibcxx.rst @@ -39,11 +39,15 @@ $ /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 +If you used **ninja** as your build system then running ``ninja check-cxx`` will run +all the tests in the libc++ testsuite. + .. note:: If you used the Bootstrapping build instead of the default runtimes build, the ``cxx-test-depends`` target is instead named ``runtimes-test-depends``, and you will need to prefix ``/runtimes/runtimes--bins/`` to the - paths of all tests. + paths of all tests. For example, to run all the libcxx tests you can do + ``/bin/llvm-lit -sv /runtimes/runtimes-bins/libcxx/test``. In the default configuration, the tests are built against headers that form a fake installation root of libc++. This installation root has to be updated when