5473 Commits

Author SHA1 Message Date
Syrus
bb3c1a6e19 Fixed suggestions 2020-04-15 18:29:53 -07:00
Syrus
23a18965b1 Improve llvm compat 2020-04-15 18:29:13 -07:00
Syrus
cce851f22f Improved tests semantics 2020-04-15 18:29:13 -07:00
Syrus
37afcd33df Removed unused code on wasitests 2020-04-15 18:29:13 -07:00
Syrus
7b41c2b843 Test forgotten function in imports 2020-04-15 18:29:13 -07:00
Syrus
dfb7432595 Moved processors out of build 2020-04-15 18:29:13 -07:00
Syrus Akbary
c5415216d7
Update build.rs (truthy env unwrap suggestion) 2020-04-15 17:52:54 -07:00
Syrus Akbary
b1a7dbe212
Update tests/generate-wasi-tests/src/set_up_toolchain.rs
Co-Authored-By: nlewycky <nick@wasmer.io>
2020-04-15 17:49:01 -07:00
Syrus Akbary
6a840a753a
Update Cargo.toml
Co-Authored-By: nlewycky <nick@wasmer.io>
2020-04-15 17:48:21 -07:00
Syrus Akbary
e14a74063b
Update build.rs
Co-Authored-By: nlewycky <nick@wasmer.io>
2020-04-15 17:48:03 -07:00
Syrus Akbary
8c9d8b23cb
Update tests/custom/multiple-traps.wast
Co-Authored-By: nlewycky <nick@wasmer.io>
2020-04-15 17:47:31 -07:00
Syrus
51a454659b Only run shell tput in *Unix 2020-04-15 16:35:02 -07:00
Syrus
52c969a71a Merge branch 'master' into test-refactor-2 2020-04-15 16:32:37 -07:00
Syrus
ce14c6c079 Second part of the refactor 2020-04-15 16:31:05 -07:00
bors[bot]
249d0b8e20
Merge #1380
1380: Test refactor r=syrusakbary a=syrusakbary

<!-- 
Prior to submitting a PR, review the CONTRIBUTING.md document for recommendations on how to test:
https://github.com/wasmerio/wasmer/blob/master/CONTRIBUTING.md#pull-requests

-->

# Description

This PR refactors the way we do testing in our infrastructure, simplifying test generation specially for spectests for each of the backends.

<!-- 
Provide details regarding the change including motivation,
links to related issues, and the context of the PR.
-->

# Review

- [ ] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Syrus <me@syrusakbary.com>
2020-04-14 20:26:16 +00:00
Syrus
2dc501822b Trying to make tests pass 2020-04-14 13:21:39 -07:00
Syrus
a85bc193f7 Ignore spec start on cranelift windows 2020-04-14 13:19:52 -07:00
Syrus
952374ccfa Fixed android tests 2020-04-14 13:19:40 -07:00
Syrus
6216891ded Fixed windows tests ignores 2020-04-14 12:46:20 -07:00
Syrus
a840b45ed7 Improved PR based on feedback. Fixed ignores 2020-04-14 12:42:45 -07:00
Syrus
cebd0ed7ab Improved attributions 2020-04-14 12:41:05 -07:00
Syrus
7f0c15b0e1 Refactored test ignores 2020-04-14 11:43:18 -07:00
Syrus
a7dba54b7f Improved test generation 2020-04-14 11:41:12 -07:00
Syrus
c2306bd39e Renamed dev_utils to utils 2020-04-10 20:18:27 -07:00
bors[bot]
6661ca73a6
Merge #1370
1370: feat(interface-types) Crate reorganization r=Hywan a=Hywan

This PR re-organizes the crate:

* `interpreter/wasm/values.rs` moves to `values.rs`,
* `interpreter/wasm/serde/*` moves to `serde/*`,
* `types.rs` is new, and includes `InterfaceType` and `RecordType`,
* Update the documentation.

Bonus: `InterfaceValue::Record`  now takes a `Vec1` rather than a `Vec` to match `InterfaceType::Record`.

Co-authored-by: Ivan Enderlin <ivan@mnt.io>
2020-04-10 08:24:23 +00:00
bors[bot]
da1e963c52
Merge #1371
1371: Update tests to use new API where easily possible r=MarkMcCaskey a=MarkMcCaskey

The primary thing that wasn't updated yet is the compile and compile_with... functions.


Co-authored-by: Mark McCaskey <mark@wasmer.io>
2020-04-09 22:56:57 +00:00
Mark McCaskey
5c09fedcd3 Remove all uses of wasmer_runtime from tests 2020-04-09 15:50:35 -07:00
Mark McCaskey
c9460e3a03 Migrate tests away from using runtime and runtime_core 2020-04-09 14:37:21 -07:00
Mark McCaskey
a149c9aaeb Update tests to use new API where easily possible 2020-04-09 12:51:18 -07:00
Ivan Enderlin
3e9c3a1694 doc(interface-types) Update the module documentation. 2020-04-09 12:16:57 +02:00
Ivan Enderlin
4c2fb953a4 feat(interface-types) InterfaceValue::Record now takes a Vec1.
It matches the definition of `InterfaceType::Record`.
2020-04-09 12:10:48 +02:00
Ivan Enderlin
700c290e55 feat(interface-types) Move the values and serde modules to the root of the crate. 2020-04-09 11:23:26 +02:00
Ivan Enderlin
e4b05d0b00 feat(interface-types) Remove the re-export of InterfaceType in values. 2020-04-09 10:54:09 +02:00
Ivan Enderlin
f955617d17 feat(interface-types) Extract InterfaceType and RecordType into its own types module. 2020-04-09 10:48:50 +02:00
bors[bot]
ad6f939e85
Merge #1362
1362: feat(interface-types) Remove allocator index from `string.lower_memory` r=Hywan a=Hywan

This PR updates `string.lower_memory` to remove the allocator index. Indeed, the string pointer is assumed to be present on the stack.
Also, this PR updates `string.size` to pop, and not to peek, the string to compute the length from.

That way, it matches the WIT proposal.

Co-authored-by: Ivan Enderlin <ivan@mnt.io>
2020-04-09 08:05:50 +00:00
bors[bot]
1ef2fe3ac9
Merge #1368
1368: Fix issue with `kernel-net`; add it to CI r=MarkMcCaskey a=MarkMcCaskey

Resolves #1365 


Co-authored-by: Mark McCaskey <mark@wasmer.io>
2020-04-09 00:26:34 +00:00
Mark McCaskey
23bc0fd720 Fix kernel-net check, fix misc warnings
Split out nightly check step
2020-04-08 17:05:25 -07:00
bors[bot]
3474c31355
Merge #1369
1369: Fix broken makefile commands and improve test consistency r=MarkMcCaskey a=MarkMcCaskey


# Review

- [ ] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Mark McCaskey <mark@wasmer.io>
2020-04-09 00:04:10 +00:00
Mark McCaskey
bb67a11c5f Fix broken makefile commands and improve test consistency 2020-04-08 17:01:32 -07:00
Mark McCaskey
4d58ae2d14 Fix issue with kernel-net; add it to CI 2020-04-08 15:18:04 -07:00
bors[bot]
cd4706fbac
Merge #1367
1367: Move `dev-utils` crate into `tests` r=MarkMcCaskey a=MarkMcCaskey

<!-- 
Prior to submitting a PR, review the CONTRIBUTING.md document for recommendations on how to test:
https://github.com/wasmerio/wasmer/blob/master/CONTRIBUTING.md#pull-requests

-->

# Description
<!-- 
Provide details regarding the change including motivation,
links to related issues, and the context of the PR.
-->

# Review

- [ ] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Mark McCaskey <5770194+MarkMcCaskey@users.noreply.github.com>
2020-04-08 20:41:23 +00:00
Mark McCaskey
9f99baa732 Fix check CI step
rm dev-utils from makefile
2020-04-08 13:40:34 -07:00
Mark McCaskey
9e8d08a771
Merge branch 'master' into feature/dev-utils-in-tests 2020-04-08 12:15:22 -07:00
Mark McCaskey
3d4ed92466 Move dev-utils crate into tests 2020-04-08 11:59:47 -07:00
bors[bot]
45c412e8dd
Merge #1363
1363: fix(interface-types) Don't duplicate code in the binary encoder. r=MarkMcCaskey a=Hywan

Use the `ToBytes` implementation of `RecordType` to encode the inner
record type of a type, so that it avoids code duplication.

Co-authored-by: Ivan Enderlin <ivan@mnt.io>
2020-04-08 18:48:49 +00:00
bors[bot]
bf2d7e93cf
Merge #1361
1361: doc(interface-types) Add `record` instructions in the `README.md` r=MarkMcCaskey a=Hywan

This PR keeps the documentation up-to-date.

Co-authored-by: Ivan Enderlin <ivan@mnt.io>
2020-04-08 18:00:28 +00:00
bors[bot]
6857cc543f
Merge #1357
1357: Refactored bin commands into separate files r=syrusakbary a=syrusakbary

<!-- 
Prior to submitting a PR, review the CONTRIBUTING.md document for recommendations on how to test:
https://github.com/wasmerio/wasmer/blob/master/CONTRIBUTING.md#pull-requests

-->

# Description

Refactored bin commands into separate files.
This PR does not do any sustancial changes other than refactoring into different files for better readability.

<!-- 
Provide details regarding the change including motivation,
links to related issues, and the context of the PR.
-->

# Review

- [x] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Syrus <me@syrusakbary.com>
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2020-04-07 20:30:09 +00:00
Syrus
6e18121cba Fixed last kernel issues 2020-04-07 13:29:02 -07:00
Syrus
daeb0f775e Added kernel subcommand 2020-04-07 12:53:41 -07:00
Syrus
69899bf014 Fixed issues 2020-04-07 12:47:36 -07:00