File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -196,10 +196,8 @@ tinygo:
196
196
test : wasi-libc
197
197
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 .
198
198
199
- TEST_PACKAGES = \
199
+ TEST_PACKAGES_BASE = \
200
200
compress/bzip2 \
201
- compress/flate \
202
- compress/zlib \
203
201
container/heap \
204
202
container/list \
205
203
container/ring \
@@ -231,7 +229,6 @@ TEST_PACKAGES = \
231
229
math/cmplx \
232
230
net/http/internal/ascii \
233
231
net/mail \
234
- os \
235
232
path \
236
233
reflect \
237
234
sync \
@@ -242,11 +239,24 @@ TEST_PACKAGES = \
242
239
unicode/utf16 \
243
240
unicode/utf8 \
244
241
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
+
245
253
# Test known-working standard library packages.
246
254
# TODO: parallelize, and only show failing tests (no implied -v flag).
247
255
.PHONY : tinygo-test
248
256
tinygo-test :
249
257
$(TINYGO ) test $(TEST_PACKAGES )
258
+ tinygo-test-wasi :
259
+ $(TINYGO ) test -target wasi $(TEST_PACKAGES_WASI )
250
260
251
261
.PHONY : smoketest
252
262
smoketest :
You can’t perform that action at this time.
0 commit comments