From b6e61122a4a15cd581db0834efe05b128f4b1858 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 4 Feb 2020 19:52:25 +0100 Subject: [PATCH] Add wasm3 to the set of supported WebAssembly runtimes Also add wasmer-js --- test/default/wasi-test-wrapper.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/default/wasi-test-wrapper.sh b/test/default/wasi-test-wrapper.sh index 0cef7c73..61b1d3bb 100755 --- a/test/default/wasi-test-wrapper.sh +++ b/test/default/wasi-test-wrapper.sh @@ -14,5 +14,17 @@ if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wasmer" ]; then fi fi +if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wasmer-js" ]; then + if command -v wasmer-js >/dev/null; then + wasmer-js run "$1" --dir=. && exit 0 + fi +fi + +if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wasm3" ]; then + if command -v wasm3 >/dev/null; then + wasm3 "$1" && exit 0 + fi +fi + echo "WebAssembly runtime failed" >&2 exit 1