diff --git a/test/default/wasi-test-wrapper.sh b/test/default/wasi-test-wrapper.sh index e4218b9c..7e72e0d6 100755 --- a/test/default/wasi-test-wrapper.sh +++ b/test/default/wasi-test-wrapper.sh @@ -34,5 +34,11 @@ if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "lucet" ]; 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 + echo "WebAssembly runtime failed" >&2 exit 1