src/testing/benchmark.go: add subset implementation of Benchmark

Partially fixes #1808

Allows the following to succeed:

curl "https://golang.org/test/fibo.go?m=text" > fibo.go
tinygo build -o fibo fibo.go
./fibo -bench
This commit is contained in:
Dan Kegel
2021-04-16 11:04:22 -07:00
committed by Ron Evans
parent 478c592b13
commit 55789fd2c2
3 changed files with 244 additions and 12 deletions
+2
View File
@@ -207,6 +207,8 @@ TEST_PACKAGES = \
.PHONY: tinygo-test
tinygo-test:
$(TINYGO) test $(TEST_PACKAGES)
# until "test testing" passes
cd tests/tinygotest && $(TINYGO) test benchmark_test.go
.PHONY: smoketest
smoketest: