diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 661bdc56..20e45fc8 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -239,3 +239,4 @@ jobs: rm xtensa-esp32-elf-gcc8_2_0-esp-2020r2-linux-amd64.tar.gz - run: make smoketest - run: make wasmtest + - run: make tinygo-baremetal diff --git a/Makefile b/Makefile index 392c7c78..741bb49f 100644 --- a/Makefile +++ b/Makefile @@ -331,6 +331,10 @@ test-corpus-fast: test-corpus-wasi: wasi-libc CGO_CPPFLAGS="$(CGO_CPPFLAGS)" CGO_CXXFLAGS="$(CGO_CXXFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" $(GO) test $(GOTESTFLAGS) -timeout=1h -buildmode exe -tags byollvm -run TestCorpus . -corpus=testdata/corpus.yaml -target=wasi +tinygo-baremetal: + # Regression tests that run on a baremetal target and don't fit in either main_test.go or smoketest. + # regression test for #2666: e.g. encoding/hex must pass on baremetal + $(TINYGO) test -target cortex-m-qemu encoding/hex .PHONY: smoketest smoketest: