aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorCarolyn Van Slyck <[email protected]>2019-06-18 03:23:59 -0700
committerRon Evans <[email protected]>2019-06-18 12:23:59 +0200
commit208e1719ad9a8e7ff94e8aac900909c37747a04f (patch)
tree0ec53ee94cc447f84e6bbfe51ef68ad428bf2bf4 /Makefile
parenta3d1f1a514aaaad6c2bfe6024ee48211cf6b7575 (diff)
downloadtinygo-208e1719ad9a8e7ff94e8aac900909c37747a04f.tar.gz
tinygo-208e1719ad9a8e7ff94e8aac900909c37747a04f.zip
Add test command to tinygo (#243)
* Add test command to tinygo
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c65fa7d27..04342dd1e 100644
--- a/Makefile
+++ b/Makefile
@@ -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