Simonas Kazlauskas
13a926adc6
regression test for GPR exhaustion during calls
2022-01-24 20:37:28 +02:00
Simonas Kazlauskas
6dc24623e3
Regression test for #2721
...
The wasm snippet in the test corresponds to roughly:
```rust
let name = "bananapeach";
banana(a, b, c, name.len() as _, name.as_ptr() as _, f, g, h);
```
however sometime between 2.0 and 2.1 the name pointer is no longer being
passed through as an argument. Instead a 0 gets passed in.
To make things weirder, if `name.as_ptr()` is passed through multiple
times, the second time the pointer will get passed correctly.
2021-12-14 14:44:51 +02:00
bors[bot]
8f2e49d528
Merge #2693
...
2693: Add extra validation to compilers & engines r=ptitSeb a=Amanieu
- Cranelift and singlepass now properly cross-compile with no dependency on the host target.
- Staticlib engine now panics if you try to run a freshly compiled module.
- CPU features used when a module was compiled are now checked against the host CPU features during instantiation.
Fixes #1567
Fixes #2590
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com >
2021-11-23 19:48:25 +00:00
Amanieu d'Antras
a603c33def
Validate that CPU features are supported when instantiating a module
2021-11-23 15:21:34 +00:00
Anbang Wen
b32e8d92c1
add a compiler test to check for deterministic
...
This is to test #2173 , the empty test always pass while the table one
fails sometimes.
2021-11-22 15:49:11 +00:00
Benjamin Coenen
e0e12f9d9f
feat(wasi): add rename for a directory + fix remove_dir
...
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com >
2021-09-07 13:55:24 +02:00
Ivan Enderlin
971915a8c1
test(wasi) Run the WASI test suites with the in-memory FS.
...
This PR updates how we generate the WASI test suites to test against
the `wasmer_vfs::host_fs` (the default), and `wasmer_vfs::mem_fs`
(that's new).
2021-08-31 11:26:14 +02:00
Syrus Akbary
e0fce0ae9d
Use test that trigger issue
2021-07-28 17:05:46 -07:00
Syrus Akbary
69cdfbb134
Added issues to test in compilers
2021-07-28 14:41:22 -07:00
chenyukang
d9b53d8792
allow unreachable_patterns in config
2021-06-08 16:03:20 +08:00
Ivan Enderlin
3d66a2e360
feat: Rename wasmer-engine-native to wasmer-engine-dylib.
2021-05-28 14:13:24 +02:00
Ivan Enderlin
79d5f20301
feat: Rename wasmer-engine-native to wasmer-engine-shared-object.
2021-05-28 14:13:24 +02:00
Ivan Enderlin
e5a784a006
feat: Rename wasmer-engine-jit to wasmer-engine-universal.
...
This (small) patch renames the `wasmer-engine-jit` crate into
`wasmer-engine-universal`.
2021-05-25 16:12:06 +02:00
Syrus Akbary
5b1fabc4ac
Fixed issues
2021-05-19 20:20:32 -05:00
Syrus Akbary
67188ed41b
Added serial test macro for serial tests
2021-05-19 13:09:47 -07:00
Syrus Akbary
0c654445b1
Fixed ignored tests
2021-05-18 15:34:31 -07:00
Syrus Akbary
2e90db6967
Addressed comments
2021-05-18 14:32:21 -07:00
Syrus
892fd1f053
Fixed tests
2021-05-16 11:36:58 -07:00
Syrus Akbary
27467048d9
Reenabled missing tests
2021-05-15 21:31:30 -07:00
Syrus
2316c54ebf
Fixed issue with features
2021-05-15 21:03:13 -07:00
Syrus Akbary
c9e66a1ddf
Fix singlepass
2021-05-15 20:51:14 -07:00
Syrus Akbary
c2e11d8499
Compiler Test refactor now fully works
2021-05-15 20:34:21 -07:00
Syrus
a7367ea7e2
Fixed lint
2021-05-01 00:42:53 -07:00
Syrus
19ec7edb26
Added extra test to verify that works
2021-05-01 00:41:41 -07:00
Mark McCaskey
20758ea8af
Update wasmparser to 0.77
2021-04-29 09:22:14 -07:00
Ivan Enderlin
c212f74e19
test: Implement MemoryUsage on test middlewares.
2021-03-22 15:35:22 +01:00
jubianchi
5962d3fd4c
chore: Fix errors to be able to build on musl
...
Closes #1482
Closes #1766
2021-01-27 21:05:15 +01:00
Nick Lewycky
5892d06a44
Fix lint warnings about unnecessary trailing semicolons.
2021-01-21 22:15:20 -08:00
Syrus Akbary
52b62d63d7
Added support for LLVM 11 and improved Apple Silicon
2021-01-11 19:38:15 -08:00
Simon Warta
df74a4812c
Create dedicated MiddlewareError
2020-12-23 00:07:00 +01:00
Simon Warta
c41451a547
Replace wasmparser::Result with wasmer::WasmResult in middleware
2020-12-23 00:07:00 +01:00
Mark McCaskey
6a2116917f
Fix up tests, make WasmerEnv: Send
2020-12-15 13:35:19 -08:00
Mark McCaskey
62d15fae36
Merge branch 'master' into fix/host-func-env-memory-leak
2020-12-15 08:37:18 -08:00
Simon Warta
69f834a9e8
Accept Into<FunctionType> as signatures
2020-12-14 13:08:15 +01:00
Mark McCaskey
6e95c50dc2
Address feedback
2020-12-08 11:02:26 -08:00
Mark McCaskey
476e8d1cd6
Merge branch 'master' into fix/host-func-env-memory-leak
2020-12-07 11:06:01 -08:00
Syrus Akbary
c76bb9824c
Remove unused else in wast check
2020-12-06 12:39:15 -08:00
Mark McCaskey
e43d9d2732
Experimental: clone host envs during construction
2020-12-04 16:04:03 -08:00
Syrus
13e6f29c29
Set compiler config to be owned (following wasm-c-api)
2020-12-04 02:39:19 -08:00
Syrus Akbary
11bf406a2b
Merge pull request #1857 from wasmerio/fix/dynamic-fn-env-wasmer-env
...
Fix dynamic function envs not working with `WasmerEnv`
2020-12-01 17:06:05 -08:00
Mark McCaskey
2d74536661
Add test for dynamic fn using WasmerEnv
2020-12-01 16:43:19 -08:00
Syrus Akbary
097bfeb479
Merge branch 'master' into feature/middleware
2020-11-30 21:31:56 -05:00
Mark McCaskey
4ef3286f2e
Merge branch 'master' into feature/host-env-prototype
2020-11-30 16:52:34 -08:00
nlewycky
f110c4d308
Merge branch 'master' into feature/middleware
2020-11-30 15:12:02 -08:00
Syrus Akbary
081af6428e
Update tests/compilers/native_functions.rs
...
Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com >
2020-11-30 14:09:13 -05:00
Mark McCaskey
82fc0080ba
Allow closures with non-native host functions
2020-11-24 13:15:38 -08:00
Mark McCaskey
29d50a55ca
Disable closures as host functions for now + docs + tests
2020-11-24 12:44:13 -08:00
Nick Lewycky
21369a26d3
Clean up build warnings.
2020-11-23 15:23:33 -08:00
losfair
77b99a0b18
Port a metering test from the old repo.
2020-11-23 13:44:14 -08:00
losfair
17e7feabe8
Add more metering tests.
2020-11-23 13:43:59 -08:00