os: add stubs for Readlink and File.Seek for baremetal targets, with smoke test.

Test currently enabled on pybadge (chosen at random)

TODO:
- enable test on arduino; currently fails with "interp: ptrtoint integer size..." (#2389)
- enable test on nintendoswitch; currently fails with many missing definitions (#2530)
This commit is contained in:
Dan Kegel
2022-01-20 13:46:27 -08:00
committed by Ron Evans
parent f5b7925047
commit 9c3f9537be
3 changed files with 37 additions and 0 deletions
+2
View File
@@ -298,6 +298,8 @@ tinygo-bench-wasi-fast:
.PHONY: smoketest
smoketest:
$(TINYGO) version
# regression test for #2563
cd tests/os/smoke && $(TINYGO) test -c -target=pybadge && rm smoke.test
# test all examples (except pwm)
$(TINYGO) build -size short -o test.hex -target=pca10040 examples/blinky1
@$(MD5SUM) test.hex