Merge branch 'master' into fix/emscripten-translate

This commit is contained in:
Syrus 2019-01-31 14:00:00 -08:00
commit 9370588b86
74 changed files with 36 additions and 13 deletions

2
.gitattributes vendored
View File

@ -1,2 +1,2 @@
lib/emscripten/emtests/* linguist-vendored lib/emscripten/emtests/* linguist-vendored
lib/runtime-core/spectests/* linguist-vendored lib/spectests/spectests/* linguist-vendored

10
Cargo.lock generated
View File

@ -738,12 +738,20 @@ dependencies = [
"nix 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)", "nix 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)",
"page_size 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "page_size 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
"parking_lot 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", "parking_lot 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
"wabt 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)",
"wasmer-clif-backend 0.1.2", "wasmer-clif-backend 0.1.2",
"wasmparser 0.23.0 (registry+https://github.com/rust-lang/crates.io-index)", "wasmparser 0.23.0 (registry+https://github.com/rust-lang/crates.io-index)",
"winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", "winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)",
] ]
[[package]]
name = "wasmer-spectests"
version = "0.1.2"
dependencies = [
"wabt 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)",
"wasmer-clif-backend 0.1.2",
"wasmer-runtime-core 0.1.2",
]
[[package]] [[package]]
name = "wasmparser" name = "wasmparser"
version = "0.22.1" version = "0.22.1"

View File

@ -27,7 +27,7 @@ wasmer-runtime-core = { path = "lib/runtime-core" }
wasmer-emscripten = { path = "lib/emscripten" } wasmer-emscripten = { path = "lib/emscripten" }
[workspace] [workspace]
members = ["lib/clif-backend", "lib/runtime", "lib/runtime-core", "lib/emscripten"] members = ["lib/clif-backend", "lib/runtime", "lib/runtime-core", "lib/emscripten", "lib/spectests"]
[build-dependencies] [build-dependencies]
wabt = "0.7.2" wabt = "0.7.2"

View File

@ -36,7 +36,7 @@ test:
# We use one thread so the emscripten stdouts doesn't collide # We use one thread so the emscripten stdouts doesn't collide
# cargo test --all -- --test-threads=1 $(runargs) # cargo test --all -- --test-threads=1 $(runargs)
# cargo test --all --exclude wasmer-emscripten -- --test-threads=1 $(runargs) # cargo test --all --exclude wasmer-emscripten -- --test-threads=1 $(runargs)
cargo test -p wasmer-runtime-core -- --test-threads=1 $(runargs) cargo test -p wasmer-spectests -- --test-threads=1 $(runargs)
release: release:
# If you are in OS-X, you will need mingw-w64 for cross compiling to windows # If you are in OS-X, you will need mingw-w64 for cross compiling to windows

View File

@ -6,7 +6,6 @@ license = "MIT"
authors = ["The Wasmer Engineering Team <engineering@wasmer.io>"] authors = ["The Wasmer Engineering Team <engineering@wasmer.io>"]
repository = "https://github.com/wasmerio/wasmer" repository = "https://github.com/wasmerio/wasmer"
edition = "2018" edition = "2018"
build = "build/mod.rs"
[dependencies] [dependencies]
hashbrown = "0.1" hashbrown = "0.1"
@ -22,17 +21,10 @@ winapi = { version = "0.3", features = ["memoryapi"] }
[target.'cfg(unix)'.dependencies] [target.'cfg(unix)'.dependencies]
errno = "0.2.4" errno = "0.2.4"
[build-dependencies]
wabt = "0.7.2"
[dev-dependencies] [dev-dependencies]
wasmer-clif-backend = { path = "../clif-backend", version = "0.1.2" } wasmer-clif-backend = { path = "../clif-backend", version = "0.1.2" }
wabt = "0.7.2"
field-offset = "0.1.1" field-offset = "0.1.1"
[features] [features]
default = ["fast-tests"]
debug = [] debug = []
# This feature will allow cargo test to compile much faster
fast-tests = []

23
lib/spectests/Cargo.toml Normal file
View File

@ -0,0 +1,23 @@
[package]
name = "wasmer-spectests"
version = "0.1.2"
description = "Wasmer spectests library"
license = "MIT"
authors = ["The Wasmer Engineering Team <engineering@wasmer.io>"]
repository = "https://github.com/wasmerio/wasmer"
edition = "2018"
build = "build/mod.rs"
[dependencies]
wasmer-runtime-core = { path = "../runtime-core" }
[build-dependencies]
wabt = "0.7.2"
[dev-dependencies]
wasmer-clif-backend = { path = "../clif-backend", version = "0.1.2" }
wabt = "0.7.2"
[features]
default = ["fast-tests"]
fast-tests = []