From 25316cce5a5b8f8f083e18c9b08897147ef3473e Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 20 Feb 2021 20:55:52 +0100 Subject: [PATCH] Add support for SSVM --- test/default/wasi-test-wrapper.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/default/wasi-test-wrapper.sh b/test/default/wasi-test-wrapper.sh index 44534f39..4f22b2f9 100755 --- a/test/default/wasi-test-wrapper.sh +++ b/test/default/wasi-test-wrapper.sh @@ -45,6 +45,14 @@ if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "iwasm" ]; then fi fi +if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "ssvm" ]; then + if command -v ssvmc >/dev/null && command -v ssvm >/dev/null; then + ssvmc "$1" "${1}.so" && + ssvm --dir=.:. "${1}.so" && + rm -f "${1}.so" + 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 \