]> Cypherpunks.ru repositories - gostls13.git/commitdiff
misc/wasm: add wasmedge to wasip1 script
authorJohan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Wed, 10 May 2023 03:32:19 +0000 (20:32 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 11 May 2023 14:42:30 +0000 (14:42 +0000)
The wasmedge runtime will be used to test our wasip1
implementation against the WASI runtime from wasmedge.org.

For #60097

Change-Id: Ib0e886de46240b4d43d02ec8a7bc7cea0730c162
Reviewed-on: https://go-review.googlesource.com/c/go/+/494120
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>

misc/wasm/go_wasip1_wasm_exec

index 55917eae88f7febb869dcfa415b34cab4cee5056..72228d0501270d43d2e56a3305a83d47c1163e82 100755 (executable)
@@ -4,6 +4,9 @@
 # license that can be found in the LICENSE file.
 
 case "$GOWASIRUNTIME" in
+       "wasmedge")
+               exec wasmedge --dir=/ --env PWD="$PWD" "$1" "${@:2}"
+               ;;
        "wasmer")
                exec wasmer run --dir=/ --env PWD="$PWD" "$1" -- "${@:2}"
                ;;