Text file
src/cmd/go/testdata/script/build_patterns_outside_gopath.txt
1 # Tests issue #18778
2 [short] skip
3
4 cd pkgs
5
6 env GO111MODULE=off
7 go build ./...
8 ! stdout .
9 go test ./...
10 stdout '^ok'
11 go list ./...
12 stdout 'pkgs$'
13 stdout 'pkgs/a'
14
15 -- pkgs/go.mod --
16 module pkgs
17
18 go 1.16
19 -- pkgs/a.go --
20 package x
21 -- pkgs/a_test.go --
22 package x_test
23
24 import "testing"
25
26 func TestX(t *testing.T) {
27 }
28 -- pkgs/a/a.go --
29 package a
30 -- pkgs/a/a_test.go --
31 package a_test
32
33 import "testing"
34
35 func TestA(t *testing.T) {
36 }
37
View as plain text