Commit Graph

5453 Commits

Author SHA1 Message Date
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
Syrus
08061f51cb Move kwasmd into wasmer 2020-04-07 12:34:34 -07:00
Syrus
f7c84c8a26 Fixed issues 2020-04-07 10:00:47 -07:00
Ivan Enderlin
4eae19ccc7 fix(interface-types) Don't duplicate code in the binary encoder.
Use the `ToBytes` implementation of `RecordType` to encode the inner
record type of a type, so that it avoids code duplication.
2020-04-07 14:29:57 +02:00
Ivan Enderlin
1687744ec9 feat(interface-types) string.size pops the string.
Previously, `string.size` was just peeking the string.
2020-04-07 12:40:14 +02:00
Ivan Enderlin
bfa5821d98 test(interface-types) Update the test_executable_instruction macro.
It provides a better failure message.
2020-04-07 12:34:30 +02:00
Ivan Enderlin
2fffee32a5 fix(interface-types) Remove allocator index from string.lower_memory. 2020-04-07 12:34:07 +02:00
Ivan Enderlin
c0623b0f8c doc(interface-types) Add record instructions. 2020-04-07 11:58:13 +02:00
Syrus Akbary
cef3dfa3b0
Merge branch 'master' into features/refactor-bin 2020-04-06 18:54:33 -07:00
Syrus
5c0ccc0a4e Trying to fix kwasmd 2020-04-06 18:54:00 -07:00
Syrus Akbary
bc757908cd
Merge pull request #1349 from wasmerio/feature/reorganized-tests
Move integration tests to `tests` dir in workspace root
2020-04-06 18:40:50 -07:00
Mark McCaskey
ade38aa391 Use CRANELIFT instead of CLIF in test env vars 2020-04-06 17:21:57 -07:00
Syrus
3735dc2742 Address feedback 2020-04-06 17:02:01 -07:00
Mark McCaskey
3579d0d445 Fix emtests and wasitests to use the correct backend 2020-04-06 16:47:06 -07:00
Syrus Akbary
c47595012a
Merge branch 'master' into features/refactor-bin 2020-04-06 16:32:16 -07:00
Syrus
20d4a5682e Added changes into changelog 2020-04-06 16:31:31 -07:00
Syrus
c312bdc782 Improved imports 2020-04-06 16:31:23 -07:00
Syrus
5572ebd990 Refactored bin commands into separate files 2020-04-06 16:06:49 -07:00
Mark McCaskey
b6011d5dc4 Only run runtime_core tests on Android 2020-04-06 14:13:54 -07:00
Mark McCaskey
9d312f4500 Add support for android in spectests 2020-04-06 12:35:08 -07:00
Mark McCaskey
4c29cd4af3 Merge branch 'master' into feature/reorganized-tests 2020-04-06 12:04:36 -07:00