diff options
author | Carolyn Van Slyck <[email protected]> | 2019-06-18 03:23:59 -0700 |
---|---|---|
committer | Ron Evans <[email protected]> | 2019-06-18 12:23:59 +0200 |
commit | 208e1719ad9a8e7ff94e8aac900909c37747a04f (patch) | |
tree | 0ec53ee94cc447f84e6bbfe51ef68ad428bf2bf4 /Makefile | |
parent | a3d1f1a514aaaad6c2bfe6024ee48211cf6b7575 (diff) | |
download | tinygo-208e1719ad9a8e7ff94e8aac900909c37747a04f.tar.gz tinygo-208e1719ad9a8e7ff94e8aac900909c37747a04f.zip |
Add test command to tinygo (#243)
* Add test command to tinygo
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -38,6 +38,7 @@ fmt: fmt-check: @unformatted=$$(gofmt -l $(FMT_PATHS)); [ -z "$$unformatted" ] && exit 0; echo "Unformatted:"; for fn in $$unformatted; do echo " $$fn"; done; exit 1 + gen-device: gen-device-avr gen-device-nrf gen-device-sam gen-device-stm32 gen-device-avr: @@ -85,6 +86,9 @@ build/tinygo: test: CGO_CPPFLAGS="$(CGO_CPPFLAGS)" CGO_CXXFLAGS="$(CGO_CXXFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" go test -v -tags byollvm . +tinygo-test: + cd tests/tinygotest && tinygo test + .PHONY: smoketest smoketest-no-avr smoketest: smoketest-no-avr tinygo build -size short -o test.elf -target=arduino examples/blinky1 |