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

Add more wasm spectests #3

Merged
merged 1 commit into from
Oct 29, 2018
Merged

Add more wasm spectests #3

merged 1 commit into from
Oct 29, 2018

Conversation

appcypher
Copy link
Contributor

@appcypher appcypher commented Oct 29, 2018

What does this PR do?

  • Adds more spectests
  • Adds some examples

How should this be manually tested?

  • Run cargo test or cargo +nightly test if that doesn't work

Spectests Covered

  • address.wast ✅
  • align.wast
  • binary.wast
  • block.wast ✅
  • br.wast ✅
  • br_if.wast ✅
  • br_table.wast ✅
  • break-drop.wast ✅
  • call.wast ✅
  • call_indirect.wast ✅
  • comments.wast
  • const.wast ✅
  • conversions.wast
  • custom.wast
  • data.wast ✅
  • elem.wast
  • endianness.wast ✅
  • exports.wast ✅
  • f32.wast ✅
  • f32_bitwise.wast ✅
  • f32_cmp.wast ✅
  • f64.wast ✅
  • f64_bitwise.wast ✅
  • f64_cmp.wast
  • fac.wast
  • float_exprs.wast
  • float_literals.wast
  • float_memory.wast
  • float_misc.wast
  • forward.wast
  • func.wast
  • func_ptrs.wast ✅
  • get_local.wast
  • globals.wast
  • i32.wast ✅
  • i64.wast ✅
  • if.wast
  • imports.wast
  • inline-module.wast
  • int_exprs.wast
  • int_literals.wast
  • labels.wast ✅
  • left-to-right.wast
  • linking.wast
  • loop.wast
  • memory.wast
  • memory_grow.wast
  • memory_redundancy.wast
  • memory_trap.wast
  • names.wast ✅
  • nop.wast
  • return.wast ✅
  • run.py
  • select.wast ✅
  • set_local.wast ✅
  • skip-stack-guard-page.wast
  • stack.wast
  • start.wast
  • store_retval.wast
  • switch.wast ✅
  • tee_local.wast ✅
  • token.wast
  • traps.wast
  • type.wast ✅
  • typecheck.wast
  • unreachable.wast
  • unreached-invalid.wast
  • unwind.wast
  • utf8-custom-section-id.wast
  • utf8-import-field.wast
  • utf8-import-module.wast
  • utf8-invalid-encoding.wast

@syrusakbary syrusakbary merged commit 91bd5b2 into wasmerio:master Oct 29, 2018
lachlansneff added a commit that referenced this pull request Apr 9, 2019
syrusakbary pushed a commit that referenced this pull request Apr 10, 2019
syrusakbary added a commit that referenced this pull request Aug 1, 2019
Each time `make capi` is run, there is a flaky error:

```
Running target/release/deps/runtime_c_api_tests-3df0f74fcea1252d

running 1 test
test test_c_api ... FAILED

failures:

---- test_c_api stdout ----
Running command: `cmake` arg: Some(".")
output:
status: 0
stdout:
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/syrusakbary/Development/wasmer/lib/runtime-c-api/tests

stderr:

Running command: `make` arg: Some("-Wdev -Werror=dev")
output:
status: 0
stdout:
[  7%] Built target test-tables
[ 15%] Built target test-module-exports
[ 23%] Built target test-module-imports
[ 30%] Built target test-globals
[ 38%] Built target test-imports
[ 46%] Built target test-module
[ 53%] Built target test-module-serialize
[ 61%] Built target test-memory
[ 69%] Built target test-validate
[ 76%] Built target test-import-function
[ 84%] Built target test-instantiate
[ 92%] Built target test-exports
[100%] Built target test-exported-memory

stderr:

Running command: `make` arg: Some("test")
output:
status: 2
stdout:
Running tests...
Test project /Users/syrusakbary/Development/wasmer/lib/runtime-c-api/tests
      Start  1: test-exported-memory
 1/13 Test  #1: test-exported-memory .............Child aborted***Exception:   0.00 sec
      Start  2: test-exports
 2/13 Test  #2: test-exports .....................   Passed    0.01 sec
      Start  3: test-globals
 3/13 Test  #3: test-globals .....................   Passed    0.00 sec
      Start  4: test-import-function
 4/13 Test  #4: test-import-function .............   Passed    0.01 sec
      Start  5: test-imports
 5/13 Test  #5: test-imports .....................   Passed    0.01 sec
      Start  6: test-instantiate
 6/13 Test  #6: test-instantiate .................   Passed    0.01 sec
      Start  7: test-memory
 7/13 Test  #7: test-memory ......................   Passed    0.00 sec
      Start  8: test-module
 8/13 Test  #8: test-module ......................   Passed    0.01 sec
      Start  9: test-module-exports
 9/13 Test  #9: test-module-exports ..............   Passed    0.01 sec
      Start 10: test-module-imports
10/13 Test #10: test-module-imports ..............   Passed    0.01 sec
      Start 11: test-module-serialize
11/13 Test #11: test-module-serialize ............   Passed    0.01 sec
      Start 12: test-tables
12/13 Test #12: test-tables ......................   Passed    0.00 sec
      Start 13: test-validate
13/13 Test #13: test-validate ....................   Passed    0.00 sec

92% tests passed, 1 tests failed out of 13

Total Test time (real) =   0.08 sec

The following tests FAILED:
	  1 - test-exported-memory (Child aborted)

stderr:
Errors while running CTest
make[1]: *** [test] Error 8

thread 'test_c_api' panicked at 'Command failed with exit status: ExitStatus(ExitStatus(512))', lib/runtime-c-api/tests/runtime_c_api_tests.rs:43:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
```
MarkMcCaskey pushed a commit that referenced this pull request Jan 23, 2020
Clean up host side of Rust Wasm examples
MarkMcCaskey pushed a commit that referenced this pull request Apr 14, 2020
nlewycky added a commit that referenced this pull request Aug 13, 2020
Fix errors in run of `cargo doc`.
bors bot pushed a commit that referenced this pull request Aug 27, 2021
bors bot pushed a commit that referenced this pull request Aug 27, 2021
jvff added a commit to jvff/wasmer that referenced this pull request Oct 8, 2024
Increment the fork version now that the pinned `wat` version has
changed.
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.

2 participants