We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a88503 commit 9f34299Copy full SHA for 9f34299
DEVDOCS.md
@@ -79,3 +79,14 @@ Run tests with:
79
```bash
80
bazel test //test/...
81
```
82
+This runs the tests in
83
+
84
+Most of the Enzyme-JaX tests use [lit](https://llvm.org/docs/CommandGuide/lit.html) for testing.
85
+These tests are stored in `test/lit_tests`.
86
+A lit test contains one or more run directives at the top a file.
87
+e.g. in `test/lit_tests/if.mlir`:
88
+```mlir
89
+// RUN: enzymexlamlir-opt %s --enzyme-hlo-opt | FileCheck %s
90
+```
91
+This instructs `lit` to run the `enzyme-hlo-opt` pass on `test/lit_tests/if.mlir`.
92
+The output is fed to `FileCheck` which compares it against the expected result that is provided in comments in the file that start with `// CHECK`.
0 commit comments