You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/developers/lit-test.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@ section: "chisel3"
8
8
9
9
We used llvm-lit and scala-cli to test CIRCT Converter. For how this tool works, see [lit - LLVM Integrated Tester](https://llvm.org/docs/CommandGuide/lit.html).
10
10
11
+
Ensure that the `lit`, `llvm`, and `scala-cli` tools are available in your environment.
12
+
11
13
## Run tests
12
14
13
15
The first line of the test file indicates how the test will be run, mostly in the form of `scala-cli ... | FileCheck`.
@@ -24,11 +26,21 @@ mill -i lit[_].run
24
26
25
27
There is a lack of a convenient way to debug test cases. But the `println` debugging method always works.
26
28
27
-
You need to temporarily modify `tests.sc` to make `lit` output more detailed (stdout, stderr).
29
+
You need to temporarily modify `panama.sc` to make `lit` output more detailed (stdout, stderr).
0 commit comments