-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Adrian Cole <[email protected]> Signed-off-by: Adrian Cole <[email protected]>
- Loading branch information
1 parent
7611a8a
commit 3b882ae
Showing
8 changed files
with
52 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
tinygo_sources := $(wildcard */*.go) | ||
build: $(tinygo_sources) | ||
@echo "Building End-to-End Wasm" | ||
@for f in $^; do \ | ||
tinygo build -o $$(echo $$f | sed -e 's/\.go/\.wasm/') -scheduler=none --no-debug -target=wasi $$f; \ | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
## waPC Guest Library for TinyGo End-to-End Tests | ||
|
||
This is an internal project holding source for various test guest wasm used to | ||
cover corner cases. This has its own [go.mod](go.mod) and [Makefile](Makefile) | ||
as the guest source is compiled with TinyGo, not Go. The `%.wasm` binaries here | ||
are checked in, to ensure end-to-end tests run without any prerequisite setup. |
2 changes: 2 additions & 0 deletions
2
internal/testdata/__console_log/main.go → internal/e2e/__console_log/main.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module github.com/wapc/wapc-guest-tinygo/internal/e2e | ||
|
||
// Match min version in go-test.yaml | ||
go 1.16 | ||
|
||
require github.com/wapc/wapc-guest-tinygo v0.0.0 | ||
|
||
replace github.com/wapc/wapc-guest-tinygo => ../../ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters