2020-05-24 20:00:05 +03:00
|
|
|
|
|
|
|
TINYGO=tinygo
|
|
|
|
|
2020-05-30 21:55:20 +03:00
|
|
|
smoketest: smoketest-tinygo smoketest-linux smoketest-windows
|
|
|
|
|
|
|
|
smoketest-tinygo:
|
2020-05-24 20:00:05 +03:00
|
|
|
# Test all examples (and some boards)
|
|
|
|
$(TINYGO) build -o test.hex -size=short -target=pca10040-s132v6 ./examples/advertisement
|
|
|
|
@md5sum test.hex
|
2020-08-30 00:02:19 +03:00
|
|
|
$(TINYGO) build -o test.uf2 -size=short -target=circuitplay-bluefruit ./examples/advertisement
|
|
|
|
@md5sum test.hex
|
2020-05-24 20:00:05 +03:00
|
|
|
$(TINYGO) build -o test.hex -size=short -target=pca10040-s132v6 ./examples/heartrate
|
|
|
|
@md5sum test.hex
|
|
|
|
$(TINYGO) build -o test.hex -size=short -target=reelboard-s140v7 ./examples/ledcolor
|
|
|
|
@md5sum test.hex
|
2020-06-11 17:52:04 +03:00
|
|
|
$(TINYGO) build -o test.hex -size=short -target=pca10040-s132v6 ./examples/nusclient
|
|
|
|
@md5sum test.hex
|
2020-06-03 18:33:32 +03:00
|
|
|
$(TINYGO) build -o test.hex -size=short -target=pca10040-s132v6 ./examples/nusserver
|
|
|
|
@md5sum test.hex
|
|
|
|
$(TINYGO) build -o test.hex -size=short -target=pca10040-s132v6 ./examples/scanner
|
|
|
|
@md5sum test.hex
|
2020-05-24 20:00:05 +03:00
|
|
|
# Test some more boards that are not tested above.
|
|
|
|
$(TINYGO) build -o test.hex -size=short -target=pca10056-s140v7 ./examples/advertisement
|
|
|
|
@md5sum test.hex
|
2020-06-03 18:33:32 +03:00
|
|
|
$(TINYGO) build -o test.hex -size=short -target=microbit-s110v8 ./examples/nusserver
|
2020-05-24 22:23:34 +03:00
|
|
|
@md5sum test.hex
|
2020-05-30 21:55:20 +03:00
|
|
|
|
|
|
|
smoketest-linux:
|
|
|
|
# Test on Linux.
|
|
|
|
GOOS=linux go build -o /tmp/go-build-discard ./examples/advertisement
|
|
|
|
GOOS=linux go build -o /tmp/go-build-discard ./examples/heartrate
|
2020-06-03 18:33:32 +03:00
|
|
|
GOOS=linux go build -o /tmp/go-build-discard ./examples/nusserver
|
2020-05-30 21:55:20 +03:00
|
|
|
GOOS=linux go build -o /tmp/go-build-discard ./examples/scanner
|
|
|
|
|
|
|
|
smoketest-windows:
|
|
|
|
# Test on Windows.
|
|
|
|
GOOS=windows CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc go build -o /tmp/go-build-discard ./examples/scanner
|
2020-08-27 23:22:27 +03:00
|
|
|
|
|
|
|
smoketest-macos:
|
|
|
|
# Test on macos.
|
|
|
|
GOOS=darwin CGO_ENABLED=1 go build -o /tmp/go-build-discard ./examples/scanner
|