Skip to content

Commit ada1109

Browse files
dkegel-fastlydeadprogram
authored andcommitted
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.
1 parent a07287d commit ada1109

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,8 @@ tinygo-baremetal:
377377
.PHONY: smoketest
378378
smoketest:
379379
$(TINYGO) version
380+
# regression test for #2892
381+
cd tests/testing/recurse && ($(TINYGO) test ./... > recurse.log && cat recurse.log && test $$(wc -l < recurse.log) = 2 && rm recurse.log)
380382
# compile-only platform-independent examples
381383
cd tests/text/template/smoke && $(TINYGO) test -c && rm -f smoke.test
382384
# regression test for #2563
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package subdir
2+
3+
import "testing"
4+
5+
func TestSubdir(t *testing.T) {
6+
}

tests/testing/recurse/top_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package top
2+
3+
import "testing"
4+
5+
func TestTop(t *testing.T) {
6+
}

0 commit comments

Comments
 (0)