Commit Graph

198 Commits

Author SHA1 Message Date
Syrus Akbary
475082e6e8 Merge branch 'master' into arm64 2020-11-20 21:13:56 -08:00
Mark McCaskey
de6cb9c4c4 Merge branch 'master' into feature/host-env-prototype 2020-11-20 15:54:35 -08:00
losfair
13a979a53d Add metering middleware. 2020-11-20 14:57:58 -08:00
losfair
e7dd725c6d Add module info transformation method to ModuleMiddleware. 2020-11-20 14:34:46 -08:00
Syrus Akbary
47c958dc43 Improved Native support 2020-11-19 20:31:26 -08:00
Syrus Akbary
1f66798bed All WASI tests now pass in Apple Silicon 2020-11-19 19:25:57 -08:00
Syrus Akbary
eba54b78ef Improved Native function tests 2020-11-19 18:31:44 -08:00
Mark McCaskey
84370c7930 Merge branch 'master' into feature/make-env-immutable 2020-11-18 15:40:11 -08:00
Mark McCaskey
37d0c364e6 Clean up code, reduce memory usage, improve correctness 2020-11-18 15:21:59 -08:00
Mark McCaskey
3580f165e8 Rename WasmerEnv::finish to WasmerEnv::init_with_instance 2020-11-17 17:14:11 -08:00
Mark McCaskey
a19705ae11 Remove free method, call finalizers in C API 2020-11-16 16:36:58 -08:00
Mark McCaskey
2690e5e8f6 Merge branch 'master' into feature/host-env-prototype 2020-11-16 15:13:29 -08:00
Syrus
3da4445e59 Update wasmparser to 0.59 2020-10-29 15:17:53 -07:00
Mark McCaskey
83008a7771 Fix up error handling code, get tests passing 2020-10-29 11:13:51 -07:00
Mark McCaskey
011ec22d43 Merge branch 'master' into feature/host-env-prototype 2020-10-20 15:46:50 -07:00
Mark McCaskey
103ea03536 Rename trait, get tests running 2020-10-20 15:40:51 -07:00
Syrus Akbary
00c931051c Merge branch 'master' into feature/trampoline-in-artifact 2020-10-19 15:11:51 -07:00
Nick Lewycky
f11f231acc Remove unused imports. 2020-10-16 17:02:48 -07:00
Nick Lewycky
797db5cd65 wasi tests should use whichever enginer we're testing. 2020-10-16 17:01:50 -07:00
Nick Lewycky
259c928c25 Thread canonicalize_nans through these utils functions and into the callers. 2020-10-16 17:01:40 -07:00
Nick Lewycky
ff15be3a75 Un-ignore these fixed tests. 2020-10-15 17:05:21 -07:00
Nick Lewycky
69eef6e490 Enable cranelift on aarch64.
Add comments to tests/ignores.txt explaining why they're disabled.

Add a list of engines to test so that we don't test engine-native on aarch64.

Disable tests in tests/compilers/traps.rs that fail with cranelift on aarch64.

Disable tests in examples/ that use cranelift + native, on aarch64.
2020-10-15 15:25:43 -07:00
Nick Lewycky
8d835485b6 Merge branch 'master' into feature/ignore-on-engine 2020-10-14 16:21:45 -07:00
Nick Lewycky
e025778574 Limit these disables to cranelift, add one test failure with link for llvm. 2020-10-14 16:20:21 -07:00
Nick Lewycky
e6cd0ab8d4 Generalize the one-off code for matching of mismatched assert_trap messages.
Use this to match all the mismatching trap messages in engine-native testing.
2020-10-14 13:39:32 -07:00
nlewycky
1f08f66ba6 Update tests/compilers/traps.rs
Ignore the test instead of skipping it.

Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2020-10-14 12:58:03 -07:00
Nick Lewycky
c24cb80105 Remove "test-no-traps" cfg! feature from test-generator, use a runtime bool instead.
Rename "test-no-traps" feature to "coverage".

Update .tarpaulin.toml to set coverage and also set test-jit (to fix breakage introduced in PR 1712).
2020-10-14 12:40:05 -07:00
Nick Lewycky
773ab17a85 Add support for "on native" and "on jit" to the ignores.txt.
Extend test-no-traps feature to cover tests/compiler/traps.rs and enable it
when testing with the native engine.

Turn on testing native engine as part of make test.
2020-10-14 01:01:49 -07:00
Nick Lewycky
84c140ecd8 Remove dead code. 2020-10-12 16:56:58 -07:00
Nick Lewycky
344d082171 cargo fmt 2020-10-12 16:53:01 -07:00
Nick Lewycky
d737ad7d9f Add the ability to run tests with either jit or native.
Don't actually make `make test` run them with native though, it doesn't pass yet.
2020-10-12 16:50:38 -07:00
Nick Lewycky
d4c92c3aaf Restore this function. 2020-10-12 15:45:34 -07:00
Nick Lewycky
331ff2b0d1 Update the commented-out code to run tests with engine-native. 2020-10-12 15:39:51 -07:00
Mark McCaskey
a97f339687 Make Function Env immutable
Work in progress, we still have to update Emscripten
2020-09-30 17:30:17 -07:00
Syrus
1ee8f5b68b SIMD tests passing 2020-08-03 16:24:24 -07:00
Syrus
00ae7f7dde Do nan canonicalization only when necessary 2020-07-29 18:55:01 -07:00
Syrus
dca70d35b0 Enable simd tests 2020-07-29 18:19:25 -07:00
Syrus
a732159514 Use better naming for module functions 2020-07-26 12:02:45 -07:00
Syrus
59715c12e0 Improved API a bit further 2020-07-23 16:07:30 -07:00
Syrus
462693e35b Simplified code a bit more 2020-07-23 15:45:00 -07:00
Syrus
b06f021612 Improved Function API 2020-07-21 20:02:01 -07:00
Syrus
e4163a1eb8 Fixed test compilation 2020-07-13 16:55:35 -07:00
Nick Lewycky
138899c186 Remove verify_ir() from Cranelift and LLVM config classes.
It's replaced by `enable_verifier()` on the CompilerConfig trait.

Enable verifier for all compilers (it's a no-op on singlepass but enabled
nevertheless) when running tests.
2020-07-13 12:13:49 -07:00
Ivan Enderlin
bec12c4700 test(compilers) Improve assertions. 2020-07-07 13:37:59 +02:00
Ivan Enderlin
74c49cb297 test(compilers) Test a static host function that fails. 2020-07-07 13:37:49 +02:00
Ivan Enderlin
daf35afbf7 test(compilers) Test static host function that returns a result. 2020-07-07 13:37:11 +02:00
Ivan Enderlin
1d2ee2d302 test(compilers) Improve and simplify tests. 2020-07-07 13:36:32 +02:00
Ivan Enderlin
d760ac2efc test(compilers) Test native host functions returning a Result.
Also clean up a little bit the other test cases.
2020-07-07 13:33:53 +02:00
Mark McCaskey
81eb1b471c Add support for new temp_dirs directive in WASI WAST 2020-06-24 10:58:25 -07:00
Mark McCaskey
a0ee282f59 Fix up some more WASI tests 2020-06-23 15:31:03 -07:00