Skip to content

Commit

Permalink
Document testing updates
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Apr 17, 2020
1 parent b376724 commit 13d04ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cranelift/docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,15 @@ functions must have the signature `() -> bNN` where `bNN` is some sort of
boolean, e.g. `b1` or `b32`. A `true` value is interpreted as a successful
test execution, whereas a `false` value is interpreted as a failed test.

Currently a `target` is required but is only used to indicate whether the host
platform can run the test, and currently only the architecture is filtered. The
host platform's native target will be used to actually compile the test.

Example:

```
test run
target x86_64
function %trivial_test() -> b1 {
ebb0:
Expand Down

0 comments on commit 13d04ad

Please sign in to comment.