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