Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Refactor #1382

Merged
merged 50 commits into from
Apr 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
ce14c6c
Second part of the refactor
syrusakbary Apr 15, 2020
52c969a
Merge branch 'master' into test-refactor-2
syrusakbary Apr 15, 2020
51a4546
Only run shell tput in *Unix
syrusakbary Apr 15, 2020
8c9d8b2
Update tests/custom/multiple-traps.wast
syrusakbary Apr 16, 2020
e14a740
Update build.rs
syrusakbary Apr 16, 2020
6a840a7
Update Cargo.toml
syrusakbary Apr 16, 2020
b1a7dbe
Update tests/generate-wasi-tests/src/set_up_toolchain.rs
syrusakbary Apr 16, 2020
c541521
Update build.rs (truthy env unwrap suggestion)
syrusakbary Apr 16, 2020
dfb7432
Moved processors out of build
syrusakbary Apr 16, 2020
7b41c2b
Test forgotten function in imports
syrusakbary Apr 16, 2020
37afcd3
Removed unused code on wasitests
syrusakbary Apr 16, 2020
cce851f
Improved tests semantics
syrusakbary Apr 16, 2020
23a1896
Improve llvm compat
syrusakbary Apr 16, 2020
bb3c1a6
Fixed suggestions
syrusakbary Apr 16, 2020
2835140
Formatted rust files
syrusakbary Apr 16, 2020
21f7bae
Fixed lints
syrusakbary Apr 16, 2020
8369431
Removed unneeded parenthesis on ARM
syrusakbary Apr 16, 2020
2a897fd
Ignore wasi tests on aarch64
syrusakbary Apr 16, 2020
21cef31
Fixed syntax
syrusakbary Apr 16, 2020
8a669cf
Fixed example testing
syrusakbary Apr 16, 2020
6415579
Fixed command names
syrusakbary Apr 16, 2020
444a68d
Test only on the backends available
syrusakbary Apr 16, 2020
9dc587e
Fixed singlepass tests on Windows
syrusakbary Apr 16, 2020
5f5928d
Update Cargo.toml
syrusakbary Apr 16, 2020
b301ac8
Improved tests to use available compilers
syrusakbary Apr 16, 2020
636b029
Fixed Windows build. Make Azure windows simpler
syrusakbary Apr 16, 2020
595f5bb
Moved cache testing to the general tests
syrusakbary Apr 16, 2020
4e489a1
Moved tests from runtime to high_level_api
syrusakbary Apr 16, 2020
6904961
Ignore basic test as it doesn’t run in Aarch64
syrusakbary Apr 16, 2020
51ed488
Added comments on features
syrusakbary Apr 16, 2020
f222658
Added DynamicFunc::new method for non x86 architectures
syrusakbary Apr 16, 2020
f8aec14
Trying to make the Makefile Windows compatible
syrusakbary Apr 16, 2020
7071e48
Trying to make wasitests setup work in windows
syrusakbary Apr 16, 2020
081ab36
Simplified azure testing
syrusakbary Apr 16, 2020
8b177b5
Update tests/test-generator/src/lib.rs
syrusakbary Apr 16, 2020
6021d17
Update tests/test-generator/src/processors.rs
syrusakbary Apr 16, 2020
80ed212
Update tests/test-generator/src/processors.rs
syrusakbary Apr 16, 2020
fbdfa62
Fixed suggestions
syrusakbary Apr 16, 2020
a2d2710
Fixed suggestions based on feedback
syrusakbary Apr 16, 2020
a858401
Fixed forgot name/body improvement in processors
syrusakbary Apr 16, 2020
695ac6d
Fixed llvm tests running cranelift/singlepass
syrusakbary Apr 16, 2020
c9713e4
Fixed makefile
syrusakbary Apr 16, 2020
ce62115
Conditionally compile `default_compiler` and related functions
Apr 16, 2020
9d63da5
Make makefile standard for wasitests
syrusakbary Apr 16, 2020
b159163
Added README to custom wast tests dir
syrusakbary Apr 16, 2020
11a0ab0
Fixed lint issue
syrusakbary Apr 16, 2020
ab4a51d
Detect singlepass first
syrusakbary Apr 16, 2020
565462d
Re-enabled middleware
syrusakbary Apr 16, 2020
c79b736
Addedd changes into Changelog
syrusakbary Apr 16, 2020
e714f55
Fixed dereference error
syrusakbary Apr 16, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## **[Unreleased]**

- [#1382](https://github.com/wasmerio/wasmer/pull/1382) Refactored test infranstructure (part 2)
- [#1380](https://github.com/wasmerio/wasmer/pull/1380) Refactored test infranstructure (part 1)
- [#1357](https://github.com/wasmerio/wasmer/pull/1357) Refactored bin commands into separate files
- [#1331](https://github.com/wasmerio/wasmer/pull/1331) Implement the `record` type and instrutions for WIT
- [#1345](https://github.com/wasmerio/wasmer/pull/1345) Adding ARM testing in Azure Pipelines
Expand Down
26 changes: 22 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 21 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ include = [
"/README.md",
"rustfmt.toml"
]
autoexamples = false

[dependencies]
atty = "0.2"
Expand All @@ -27,16 +28,20 @@ fern = { version = "0.5", features = ["colored"], optional = true }
log = "0.4"
structopt = "0.3"
wabt = { version = "0.9.1", optional = true }
wasmer = { path = "lib/api" }
wasmer-clif-backend = { path = "lib/clif-backend", optional = true }
wasmer-singlepass-backend = { path = "lib/singlepass-backend", optional = true }
wasmer = { path = "lib/api", default-features = false }
wasmer-middleware-common = { path = "lib/middleware-common" }
wasmer-runtime = { path = "lib/runtime" }
wasmer-runtime = { path = "lib/runtime", default-features = false }
wasmer-runtime-core = { path = "lib/runtime-core" }
wasmer-emscripten = { path = "lib/emscripten" }
wasmer-kernel-loader = { path = "lib/kernel-loader", optional = true }

# Backends
wasmer-singlepass-backend = { path = "lib/singlepass-backend", optional = true }
wasmer-clif-backend = { path = "lib/clif-backend", optional = true }
wasmer-llvm-backend = { path = "lib/llvm-backend", optional = true }

# Frontends
wasmer-emscripten = { path = "lib/emscripten" }
wasmer-wasi = { path = "lib/wasi", optional = true }
wasmer-kernel-loader = { path = "lib/kernel-loader", optional = true }
wasmer-wasi-experimental-io-devices = { path = "lib/wasi-experimental-io-devices", optional = true }

[workspace]
Expand Down Expand Up @@ -76,21 +81,25 @@ rustc_version = "0.2"
[dev-dependencies]
anyhow = "1.0.19"
wasmer-wast = { path = "tests/wast" }
lazy_static = "1.4"
# To allow parameterized tests
test-case = "1.0.0"
criterion = "0.3"
glob = "0.3"
libc = "0.2.60" # for `tests/dev-utils`'s Stdout capturing
serde = { version = "1", features = ["derive"] } # used by the plugin example
serde_json = "1"
typetag = "0.1" # used by the plugin example
wabt = "0.9.1"

[features]
default = ["fast-tests", "wasi", "backend-cranelift", "wabt"]
"loader-kernel" = ["wasmer-kernel-loader"]
# Don't add the backend features in default, please add them on the Makefile
# since we might want to autoconfigure them depending on the availability on the host.
default = ["wasi", "wabt"]
loader-kernel = ["wasmer-kernel-loader"]
debug = ["fern", "log/max_level_debug", "log/release_max_level_debug"]
trace = ["fern", "log/max_level_trace", "log/release_max_level_trace"]
docs = ["wasmer-runtime/docs"]
# This feature will allow cargo test to run much faster
fast-tests = []
syrusakbary marked this conversation as resolved.
Show resolved Hide resolved
backend-cranelift = [
"wasmer-clif-backend",
"wasmer-clif-backend/generate-debug-information",
Expand All @@ -115,9 +124,10 @@ managed = ["backend-singlepass", "wasmer-runtime-core/managed"]

[[example]]
name = "plugin"
required-features = ["wasi"]
required-features = ["wasi", "backend-cranelift"]
crate-type = ["bin"]

[[example]]
name = "callback"
crate-type = ["bin"]
required-features = ["backend-cranelift"]
Loading