aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/vendor_test_issue14613.txt
blob: 4e5e066d6bab8ad89cb7649584fa1e6716b83a7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[!net] skip
[!exec:git] skip

cd $GOPATH

go get github.com/clsung/go-vendor-issue-14613
go build -o $WORK/a.out -i github.com/clsung/go-vendor-issue-14613

# test folder should work
go test -i github.com/clsung/go-vendor-issue-14613
go test github.com/clsung/go-vendor-issue-14613

# test with specified _test.go should work too
cd $GOPATH/src
go test -i github.com/clsung/go-vendor-issue-14613/vendor_test.go
go test github.com/clsung/go-vendor-issue-14613/vendor_test.go

# test with imported and not used
go test -i github.com/clsung/go-vendor-issue-14613/vendor/mylibtesttest/myapp/myapp_test.go
! go test github.com/clsung/go-vendor-issue-14613/vendor/mylibtesttest/myapp/myapp_test.go
stderr 'imported and not used:'