Skip to content

Commit 75a96af

Browse files
committed
Makefile: add tinygo-test-wasi; like tinygo-test but with -target wasi
1 parent 3830539 commit 75a96af

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

Makefile

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,8 @@ tinygo:
196196
test: wasi-libc
197197
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 .
198198

199-
TEST_PACKAGES = \
199+
TEST_PACKAGES_BASE = \
200200
compress/bzip2 \
201-
compress/flate \
202-
compress/zlib \
203201
container/heap \
204202
container/list \
205203
container/ring \
@@ -231,7 +229,6 @@ TEST_PACKAGES = \
231229
math/cmplx \
232230
net/http/internal/ascii \
233231
net/mail \
234-
os \
235232
path \
236233
reflect \
237234
sync \
@@ -242,11 +239,24 @@ TEST_PACKAGES = \
242239
unicode/utf16 \
243240
unicode/utf8 \
244241

242+
# Standard library packages that pass tests natively
243+
TEST_PACKAGES = \
244+
$(TEST_PACKAGES_BASE) \
245+
compress/flate \
246+
compress/zlib \
247+
os \
248+
249+
# Standard library packages that pass tests on wasi
250+
TEST_PACKAGES_WASI = \
251+
$(TEST_PACKAGES_BASE)
252+
245253
# Test known-working standard library packages.
246254
# TODO: parallelize, and only show failing tests (no implied -v flag).
247255
.PHONY: tinygo-test
248256
tinygo-test:
249257
$(TINYGO) test $(TEST_PACKAGES)
258+
tinygo-test-wasi:
259+
$(TINYGO) test -target wasi $(TEST_PACKAGES_WASI)
250260

251261
.PHONY: smoketest
252262
smoketest:

0 commit comments

Comments
 (0)