Add more info about unit tests.

pull/1365/head
Sean Silva 2022-09-12 09:17:48 -07:00
parent 48418b9c22
commit 1c8b389ead
1 changed files with 4 additions and 1 deletions

View File

@ -313,7 +313,10 @@ Torch-MLIR has two types of tests:
2. Compiler and Python API unit tests. These use LLVM's `lit` testing framework.
For example, these might involve using `torch-mlir-opt` to run a pass and
check the output with `FileCheck`.
check the output with `FileCheck`. These tests usually live in the `test/`
directory with a parallel file naming scheme to the `lib/*` structure.
More details about this kind of test is available in the upstream
[LLVM Testing Guide](https://llvm.org/docs/TestingGuide.html#regression-test-structure).
## Running execution (end-to-end) tests: