Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds test delegating to iotest against a wasi fs.Fs implementation #553

Merged
merged 2 commits into from
May 13, 2022

Conversation

anuraaga
Copy link
Contributor

Signed-off-by: Anuraag Agrawal [email protected]

Fixes #408

This implements fs.Fs and io.Reader / io.Seeker by calling into exported wasm functions that delegate to wasi. This let's use add integration tests that target fs.Fs as a generic mechanism for accessing files - in this PR we execute iotest.TestReader which runs some tests verifying the operation of a Reader. Because we haven't implemented fd_stat in wasi yet, this does not implement File.Stat() yet.

https://cs.opensource.google/go/go/+/master:src/testing/iotest/reader.go;l=136

@anuraaga anuraaga force-pushed the wasifs branch 2 times, most recently from de581b6 to 7853aaf Compare May 13, 2022 03:07
Signed-off-by: Anuraag Agrawal <[email protected]>
Copy link
Contributor

@codefromthecrypt codefromthecrypt left a comment

Choose a reason for hiding this comment

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

good job!

@anuraaga anuraaga merged commit ab25a84 into tetratelabs:main May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wasi: add fs.FS integration test
3 participants