Skip to content

Commit

Permalink
Update TestingGuide.md (#206)
Browse files Browse the repository at this point in the history
Hi!
This PR contains a few small fixes to test suites paths in
`TestingGuide.md` so that they can be run with latest llvm-project
`main` branch.
  • Loading branch information
mtsokol authored Oct 15, 2024
1 parent 0029ecc commit aee368c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions website/content/getting_started/TestingGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ cmake --build . --target check-mlir-integration
### Run C++ unit tests:

```sh
bin/llvm-lit -v tools/mlir/Unit
bin/llvm-lit -v tools/mlir/test/Unit
```

### Run `lit` tests in a specific directory

```sh
bin/llvm-lit -v tools/mlir/test/Dialect/Arithmetic
bin/llvm-lit -v tools/mlir/test/Dialect/Arith
```

### Run a specific `lit` test file
Expand Down Expand Up @@ -109,18 +109,18 @@ Subsets of the testing tree can be invoked by passing a more specific path
instead of `tools/mlir/test` above. Example:

```shell
./bin/llvm-lit tools/mlir/test/Dialect/Arithmetic
./bin/llvm-lit tools/mlir/test/Dialect/Arith

# Note that it is possible to test at the file granularity, but since these
# files do not actually exist in the build directory, you need to know the
# name.
./bin/llvm-lit tools/mlir/test/Dialect/Arithmetic/ops.mlir
./bin/llvm-lit tools/mlir/test/Dialect/Arith/ops.mlir
```

Or for running all the C++ unit-tests:

```shell
./bin/llvm-lit tools/mlir/Unit
./bin/llvm-lit tools/mlir/test/Unit
```

The C++ unit-tests can also be executed as individual binaries, which is
Expand Down

0 comments on commit aee368c

Please sign in to comment.