Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Add test run to cranelift-filetests to allow executing CLIF#890

Merged
bnjbvr merged 3 commits intobytecodealliance:masterfrom
abrown:clif-filetests-test-run
Aug 21, 2019
Merged

Add test run to cranelift-filetests to allow executing CLIF#890
bnjbvr merged 3 commits intobytecodealliance:masterfrom
abrown:clif-filetests-test-run

Conversation

@abrown
Copy link
Copy Markdown
Member

@abrown abrown commented Aug 2, 2019

This depends on the change in #872; adds the ability to start running CLIF as a part of the build automation. As mentioned there, future commits will add a way (e.g. fork) to avoid crashing the test process if a test fails and a more flexible expression syntax for asserting results (e.g. run: fn(...) == ...).

@abrown abrown force-pushed the clif-filetests-test-run branch 2 times, most recently from 6670f39 to 1fc6ed1 Compare August 2, 2019 18:31
@abrown abrown force-pushed the clif-filetests-test-run branch 2 times, most recently from e1ae5b8 to 6d543c9 Compare August 19, 2019 22:34
@abrown
Copy link
Copy Markdown
Member Author

abrown commented Aug 19, 2019

Rebased; ready for review (@bnjbvr? @sunfishcode?)

Copy link
Copy Markdown
Member

@bnjbvr bnjbvr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me, thanks! As suggested, maybe we could just squash the two commits together, since the second one moves code introduced in the first one? I'll make sure to merge quickly once you've addressed comments here and on the other pull request.

@bnjbvr
Copy link
Copy Markdown
Member

bnjbvr commented Aug 21, 2019

There are new conflicts because of Cargo updates, can you please manually rebase @abrown ?

abrown added 2 commits August 21, 2019 08:35
This re-factors the compile/execute parts to a FunctionRunner that is shared between cranelift-filetests and clif-util. CLIF can be now be run using `clif-util run` as well as during `clif-util test` for files with a `test run` header. As before, only functions suffixed with a `run` comment are executed. The `run: fn(...) == ...` expression syntax is left for a subsequent change.
@abrown abrown force-pushed the clif-filetests-test-run branch from 0c0c067 to 992fb31 Compare August 21, 2019 15:37
@abrown
Copy link
Copy Markdown
Member Author

abrown commented Aug 21, 2019

@bnjbvr should be good to go now

@bnjbvr
Copy link
Copy Markdown
Member

bnjbvr commented Aug 21, 2019

Great work, thank you!

@bnjbvr bnjbvr merged commit 14666ca into bytecodealliance:master Aug 21, 2019
@abrown abrown deleted the clif-filetests-test-run branch August 21, 2019 16:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants