From 475135f546f658d29e6c376fe170608c6864de50 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Fri, 4 Sep 2020 00:41:35 +0200 Subject: [PATCH] ci: run `tinygo test` for known-working packages These packages are known to pass tests with `tinygo test`. It's still a very short list, but hopefully this list can be expanded to eventually cover most or all of the standard library. --- .circleci/config.yml | 1 + Makefile | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 94fe4b50..eedf08d2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -108,6 +108,7 @@ commands: - run: go test -v -tags=llvm<> ./cgo ./compileopts ./interp ./transform . - run: make gen-device -j4 - run: make smoketest XTENSA=0 + - run: make tinygo-test - run: make wasmtest - save_cache: key: go-cache-v2-{{ checksum "go.mod" }}-{{ .Environment.CIRCLE_BUILD_NUM }} diff --git a/Makefile b/Makefile index e582b8ff..17c6591c 100644 --- a/Makefile +++ b/Makefile @@ -190,8 +190,14 @@ tinygo: test: wasi-libc CGO_CPPFLAGS="$(CGO_CPPFLAGS)" CGO_CXXFLAGS="$(CGO_CXXFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" $(GO) test -v -buildmode exe -tags byollvm ./cgo ./compileopts ./interp ./transform . +# Test known-working standard library packages. +# TODO: do this in one command, parallelize, and only show failing tests (no +# implied -v flag). +.PHONY: tinygo-test tinygo-test: - cd tests/tinygotest && tinygo test + $(TINYGO) test container/list + $(TINYGO) test container/ring + $(TINYGO) test text/scanner .PHONY: smoketest smoketest: