From fbe5d52a81c7df4eefb7bdac8b8b1bd4deb6a068 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 23 Apr 2019 01:24:12 +0200 Subject: [PATCH] Spaces --- test/default/wasi-test-wrapper.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/default/wasi-test-wrapper.sh b/test/default/wasi-test-wrapper.sh index a98eed0a..23573f68 100755 --- a/test/default/wasi-test-wrapper.sh +++ b/test/default/wasi-test-wrapper.sh @@ -5,11 +5,13 @@ if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wasmtime" ]; then wasmtime -o --dir=. "$1" && exit 0 fi fi + if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wasmer" ]; then if command -v wasmer >/dev/null; then wasmer run "$1" --backend "${WASMER_BACKEND:-cranelift}" --dir=. && exit 0 fi fi + if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "lucet" ]; then if command -v lucetc-wasi >/dev/null && command -v lucet-wasi >/dev/null; then lucetc-wasi \ @@ -18,5 +20,6 @@ if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "lucet" ]; then lucet-wasi --dir=.:. "$1.so" && exit 0 fi fi + echo "WebAssembly runtime failed" >&2 exit 1