Use build.rs to generate test cases automatically

Now, test binaries are bundled with the repo, and
just like in CraneStation/wasmtime, the test cases
are generated automatically using build.rs. So all
it takes is to drop a new test binary in the
testsuite dir to get the test case for it generated
(with some caveats to do with handling preopens).
This commit is contained in:
Jakub Konka
2019-06-26 09:59:00 +02:00
committed by Dan Gohman
parent 656112d00b
commit 22c69f46f9
19 changed files with 159 additions and 105 deletions

View File

@@ -37,6 +37,9 @@ target-lexicon = "0.3.0"
[patch."https://github.com/CraneStation/wasi-common"]
wasi-common = { path = "." }
[build-dependencies]
cfg-if = "0.1.9"
[lib]
name = "wasi_common"
crate-type = ["rlib", "staticlib", "cdylib"]