[libcxx-commits] [libcxx] 170475c - Instructions to run libc++ test suite
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Apr 20 09:53:02 PDT 2023
Author: AdityaK
Date: 2023-04-20T09:52:47-07:00
New Revision: 170475cf1d08e9d57d61f9d46ac1fcde30d28f2d
URL: https://github.com/llvm/llvm-project/commit/170475cf1d08e9d57d61f9d46ac1fcde30d28f2d
DIFF: https://github.com/llvm/llvm-project/commit/170475cf1d08e9d57d61f9d46ac1fcde30d28f2d.diff
LOG: Instructions to run libc++ test suite
Reviewers: ldionne, philnik, EricWF
Reviewed By: EricWF
Differential Revision: https://reviews.llvm.org/D147751
Added:
Modified:
libcxx/docs/TestingLibcxx.rst
Removed:
################################################################################
diff --git a/libcxx/docs/TestingLibcxx.rst b/libcxx/docs/TestingLibcxx.rst
index 9dc8792f5a783..259672c261c2c 100644
--- a/libcxx/docs/TestingLibcxx.rst
+++ b/libcxx/docs/TestingLibcxx.rst
@@ -39,11 +39,15 @@ whether the required libraries have been built, you can use the
$ <build>/bin/llvm-lit -sv libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp # Run a single test
$ <build>/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 ``<build>/runtimes/runtimes-<target>-bins/`` to the
- paths of all tests.
+ paths of all tests. For example, to run all the libcxx tests you can do
+ ``<build>/bin/llvm-lit -sv <build>/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
More information about the libcxx-commits
mailing list