From b40674e29a5148cfcc8205025848cb9d8dc83483 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 22 Oct 2019 08:59:24 +0200 Subject: [PATCH] Add support for WAVM as a WebAssembly runtime --- test/default/wasi-test-wrapper.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/default/wasi-test-wrapper.sh b/test/default/wasi-test-wrapper.sh index 69d9e6ce..714bb848 100755 --- a/test/default/wasi-test-wrapper.sh +++ b/test/default/wasi-test-wrapper.sh @@ -2,6 +2,12 @@ MAX_MEMORY_TESTS="67108864" +if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wavm" ]; then + if command -v wavm >/dev/null; then + wavm run --abi=wasi "$1" && exit 0 + fi +fi + if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wasmtime" ]; then if command -v wasmtime >/dev/null; then wasmtime -o --dir=. "$1" && exit 0