smoketest: add regression test for 'tinygo test ./...', see #2892

tests/testing/recurse has two directories with tests;
"make smoketest" now does "tinygo test ./..." in that directory
and fails if it does not run both directories' tests.
This commit is contained in:
Dan Kegel
2022-06-04 10:47:51 -07:00
committed by Ron Evans
parent a07287d3c6
commit ada11090a2
3 changed files with 14 additions and 0 deletions
+2
View File
@@ -377,6 +377,8 @@ tinygo-baremetal:
.PHONY: smoketest
smoketest:
$(TINYGO) version
# regression test for #2892
cd tests/testing/recurse && ($(TINYGO) test ./... > recurse.log && cat recurse.log && test $$(wc -l < recurse.log) = 2 && rm recurse.log)
# compile-only platform-independent examples
cd tests/text/template/smoke && $(TINYGO) test -c && rm -f smoke.test
# regression test for #2563
@@ -0,0 +1,6 @@
package subdir
import "testing"
func TestSubdir(t *testing.T) {
}
+6
View File
@@ -0,0 +1,6 @@
package top
import "testing"
func TestTop(t *testing.T) {
}