diff options
author | Dan Kegel <[email protected]> | 2021-12-22 12:52:10 -0800 |
---|---|---|
committer | Ron Evans <[email protected]> | 2021-12-24 01:20:59 +0100 |
commit | 0aed62efe43b42794244d48914509e8928f08f16 (patch) | |
tree | aa18e9379cfcb5033b513359b22dc0866e4f6ebc /Makefile | |
parent | 2b1a72d112233e7f94f3cb6e48055c4c3c0ddc13 (diff) | |
download | tinygo-0aed62efe43b42794244d48914509e8928f08f16.tar.gz tinygo-0aed62efe43b42794244d48914509e8928f08f16.zip |
Makefile: add tinygo-test-wasi; like tinygo-test but with -target wasi
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -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 \ @@ -231,7 +229,6 @@ TEST_PACKAGES = \ math/cmplx \ net/http/internal/ascii \ net/mail \ - os \ path \ reflect \ sync \ @@ -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: |