Skip to content
This repository has been archived by the owner on Jun 27, 2021. It is now read-only.

Add wasi tests #31

Merged
merged 7 commits into from
Aug 5, 2020
Merged

Add wasi tests #31

merged 7 commits into from
Aug 5, 2020

Conversation

caspervonb
Copy link
Member

@caspervonb caspervonb commented Aug 2, 2020

This adds an initial batch direct tests against the ABI.

Not by an means an exhaustive set of tests but we have to begin somewhere.

@caspervonb caspervonb force-pushed the test-wasi branch 2 times, most recently from 73f5f2d to 23215ef Compare August 3, 2020 09:11
This changes the CI invocation to use wasm32-wasi as the build target.
This adds a dependency on the wasi crate allowing for tests to be
written against the ABI.
This adds a couple of tests for validating the behavior of
wasi::clock_time_get.
This adds a couple of tests for validating the behavior of
wasi::clock_res_get.
This adds a couple of tests validating the behavior wasi::proc_exit.
This adds a test validating that wasi::random_get succeeds and doesn't
return a zero filled buffer.
This adds a couple of tests validating the behavior of wasi::fd_write
with stdout, stderr and stdio and a file.
@caspervonb caspervonb marked this pull request as ready for review August 5, 2020 09:50
@caspervonb caspervonb merged commit 972f404 into master Aug 5, 2020
@caspervonb caspervonb deleted the test-wasi branch August 5, 2020 10:31
@caspervonb caspervonb mentioned this pull request Aug 6, 2020
@caspervonb caspervonb linked an issue Aug 6, 2020 that may be closed by this pull request
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.

Test the API directly
1 participant