mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
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:
@@ -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) {
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package top
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestTop(t *testing.T) {
|
||||
}
|
||||
Reference in New Issue
Block a user