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