Convert the wast test harness into a crate.

This uses a build.rs file to collect all the wast tests and create
individual `#[test]` lines for them, so that `cargo test` can run them
in parallel.
This commit is contained in:
Dan Gohman
2018-12-03 04:19:20 -08:00
parent 4c47ce9b53
commit 83f8a31010
13 changed files with 592 additions and 291 deletions

20
lib/wast/Cargo.toml Normal file
View File

@@ -0,0 +1,20 @@
[package]
name = "wasmtime-wast"
version = "0.0.0"
authors = ["The Cranelift Project Developers"]
publish = false
description = "wast testing support for wasmtime"
categories = ["wasm"]
repository = "https://github.com/CraneStation/wasmtime"
license = "Apache-2.0 WITH LLVM-exception"
readme = "README.md"
[dependencies]
cranelift-codegen = { git = "https://github.com/sunfishcode/cranelift.git", branch = "guard-offset" }
cranelift-native = { git = "https://github.com/sunfishcode/cranelift.git", branch = "guard-offset" }
wasmtime-execute = { path = "../execute" }
wabt = "0.7"
[badges]
maintenance = { status = "experimental" }
travis-ci = { repository = "CraneStation/wasmtime" }