Skip to content

Makefile: add tinygo-test-wasi; like tinygo-test but with -target wasi #2373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,8 @@ tinygo:
test: wasi-libc
CGO_CPPFLAGS="$(CGO_CPPFLAGS)" CGO_CXXFLAGS="$(CGO_CXXFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" $(GO) test $(GOTESTFLAGS) -timeout=20m -buildmode exe -tags byollvm ./builder ./cgo ./compileopts ./compiler ./interp ./transform .

TEST_PACKAGES = \
TEST_PACKAGES_BASE = \
compress/bzip2 \
compress/flate \
compress/zlib \
container/heap \
container/list \
container/ring \
Expand Down Expand Up @@ -231,7 +229,6 @@ TEST_PACKAGES = \
math/cmplx \
net/http/internal/ascii \
net/mail \
os \
path \
reflect \
sync \
Expand All @@ -242,11 +239,24 @@ TEST_PACKAGES = \
unicode/utf16 \
unicode/utf8 \

# Standard library packages that pass tests natively
TEST_PACKAGES = \
$(TEST_PACKAGES_BASE) \
compress/flate \
compress/zlib \
os \

# Standard library packages that pass tests on wasi
TEST_PACKAGES_WASI = \
$(TEST_PACKAGES_BASE)

# Test known-working standard library packages.
# TODO: parallelize, and only show failing tests (no implied -v flag).
.PHONY: tinygo-test
tinygo-test:
$(TINYGO) test $(TEST_PACKAGES)
tinygo-test-wasi:
$(TINYGO) test -target wasi $(TEST_PACKAGES_WASI)

.PHONY: smoketest
smoketest:
Expand Down