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

improve wasitest infra and fix fseek test #563

Merged
merged 4 commits into from
Jul 15, 2019
Merged

Conversation

MarkMcCaskey
Copy link
Contributor

@MarkMcCaskey MarkMcCaskey commented Jul 15, 2019

This PR:

  • fixes arg parsing from comments
  • fixes the mapdir test to have the native code doing the same thing
  • makes wasitests-generate output stdout/stderr by default
  • adds function to print stdout and stderr for a command if it fails
  • compiles wasm with size optimizations
  • strips generated wasm with wasm-strip

This makes wasm module sizes go down from 1.7, 1.9Mb to ~60kb, 80kb. Preventing git bloat and reducing likely bottleneck of reading wasm modules from disk

@MarkMcCaskey MarkMcCaskey added 🧪 tests I love tests 📦 lib-wasi About wasmer-wasi labels Jul 15, 2019
@MarkMcCaskey
Copy link
Contributor Author

bors try

bors bot added a commit that referenced this pull request Jul 15, 2019
@bors
Copy link
Contributor

bors bot commented Jul 15, 2019

@MarkMcCaskey
Copy link
Contributor Author

bors r+

bors bot added a commit that referenced this pull request Jul 15, 2019
563: improve wasitest infra and fix fseek test r=MarkMcCaskey a=MarkMcCaskey

This PR:
- fixes arg parsing from comments
- fixes the mapdir test to have the native code doing the same thing
- makes `wasitests-generate` output stdout/stderr by default
- adds function to print stdout and stderr for a command if it fails
- compiles wasm with size optimizations
- strips generated wasm with `wasm-strip`

This makes wasm module sizes go down from 1.7, 1.9Mb to ~60kb, 80kb.  Preventing git bloat and reducing likely bottleneck of reading wasm modules from disk

Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
@bors
Copy link
Contributor

bors bot commented Jul 15, 2019

Timed out

@syrusakbary
Copy link
Member

Merging manually, as tests passed :)

@syrusakbary syrusakbary merged commit cd0a248 into master Jul 15, 2019
@bors bors bot deleted the improve-wasi-tests branch July 15, 2019 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 lib-wasi About wasmer-wasi 🧪 tests I love tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants