-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[llvm][Docs] Make it clear where lit test files live #124121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
As someone on Discord was understandably confused because the build directory does contain folder structures that look remarkably like the source directory. I used this page to explain it but realised that this must be from when llvm was a separate repository. So <user home>/llvm probably was a common path. Now it's in llvm-project. So make that obvious in the instructions.
@llvm/pr-subscribers-testing-tools Author: David Spickett (DavidSpickett) ChangesAs someone on Discord was understandably confused because the build directory does contain folder structures that look remarkably like the source directory. I used this page to explain it but realised that this must be from when llvm was a separate repository. So <user home>/llvm probably was a common path. Now it's in llvm-project. So make that obvious in the instructions. Full diff: https://github.com/llvm/llvm-project/pull/124121.diff 1 Files Affected:
diff --git a/llvm/docs/TestingGuide.rst b/llvm/docs/TestingGuide.rst
index 08617933519fdb..b6dda6a7324056 100644
--- a/llvm/docs/TestingGuide.rst
+++ b/llvm/docs/TestingGuide.rst
@@ -167,13 +167,17 @@ script which is built as part of LLVM. For example, to run the
.. code-block:: bash
- % llvm-lit ~/llvm/test/Integer/BitPacked.ll
+ % llvm-lit <path to llvm-project>/llvm/test/Integer/BitPacked.ll
-or to run all of the ARM CodeGen tests:
+.. note::
+ The test files are in the ``llvm-project`` directory, not the directory you
+ are building LLVM in.
+
+Or you can run a whole folder of tests. To run all of the ARM CodeGen tests:
.. code-block:: bash
- % llvm-lit ~/llvm/test/CodeGen/ARM
+ % llvm-lit <path to llvm-project>/llvm/test/CodeGen/ARM
The regression tests will use the Python psutil module only if installed in a
**non-user** location. Under Linux, install with sudo or within a virtual
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. There was also some confusion on regression vs unittest, but I think the docs explain that well enough already.
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/50/builds/9342 Here is the relevant piece of the build log for the reference
|
As someone on Discord was understandably confused because the build directory does contain folder structures that look remarkably like the source directory.
I used this page to explain it but realised that this must be from when llvm was a separate repository. So
<user home>/llvm
probably was a common path.Now it's in llvm-project. So make that obvious in the instructions.