Skip to content

Commit f428b51

Browse files
committed
Document testing updates
1 parent 439971e commit f428b51

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cranelift/docs/testing.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,15 @@ functions must have the signature `() -> bNN` where `bNN` is some sort of
316316
boolean, e.g. `b1` or `b32`. A `true` value is interpreted as a successful
317317
test execution, whereas a `false` value is interpreted as a failed test.
318318

319+
Currently a `target` is required but is only used to indicate whether the host
320+
platform can run the test, and currently only the architecture is filtered. The
321+
host platform's native target will be used to actually compile the test.
322+
319323
Example:
320324

321325
```
322326
test run
327+
target x86_64
323328
324329
function %trivial_test() -> b1 {
325330
ebb0:

0 commit comments

Comments
 (0)