From 17d9198774b05188f843ff57fcd0af40a198fa08 Mon Sep 17 00:00:00 2001 From: Yi Date: Thu, 12 May 2022 18:36:11 +0800 Subject: [PATCH] Update wasi-test-wrapper: SSVM was renamed to WasmEdge (#1179) --- test/default/wasi-test-wrapper.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/default/wasi-test-wrapper.sh b/test/default/wasi-test-wrapper.sh index 0070778d..5b77967e 100755 --- a/test/default/wasi-test-wrapper.sh +++ b/test/default/wasi-test-wrapper.sh @@ -39,11 +39,12 @@ 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" +if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "wasmedge" ]; then + if command -v wasmedgec >/dev/null && command -v wasmedge >/dev/null; then + wasmedgec "$1" "${1}.so" && + wasmedge --dir=.:. "${1}.so" && + rm -f "${1}.so" && + exit 0 fi fi