Skip to content

Commit 8740ff8

Browse files
authored
[mlir][docs][python] Fix up testing docs (#147092)
Use the correct path to binding tests. Also add a suggested ninja command to run tests.
1 parent 249acb8 commit 8740ff8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mlir/docs/Bindings/Python.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ python -m pip install --upgrade pip
5151
# packages will be installed there.
5252
python -m pip install -r mlir/python/requirements.txt
5353

54-
# Now run `cmake`, `ninja`, et al.
54+
# Now run your build command with `cmake`, `ninja`, et al.
55+
56+
# Run mlir tests. For example, to run python bindings tests only using ninja:
57+
ninja check-mlir-python
5558
```
5659

5760
For interactive use, it is sufficient to add the
@@ -859,7 +862,7 @@ mutually exclusive with a more complete mapping of the backing constructs.
859862

860863
## Testing
861864

862-
Tests should be added in the `test/Bindings/Python` directory and should
865+
Tests should be added in the `mlir/test/python` directory and should
863866
typically be `.py` files that have a lit run line.
864867

865868
We use `lit` and `FileCheck` based tests:

0 commit comments

Comments
 (0)