Skip to content

Commit e158c2f

Browse files
committed
[mlir][docs][python] Fix up testing docs
Use the correct path to binding tests. Also add a suggested ninja command to run tests.
1 parent cc6a864 commit e158c2f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mlir/docs/Bindings/Python.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ 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 `cmake`, `ninja`, et al. For example, to run python bindings test only
55+
# using ninja:
56+
ninja check-mlir-python
5557
```
5658

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

860862
## Testing
861863

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

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

0 commit comments

Comments
 (0)