Text file src/cmd/go/testdata/script/vendor_test_issue14613.txt

     1  [!net] skip
     2  [!exec:git] skip
     3  env GO111MODULE=off
     4  
     5  cd $GOPATH
     6  
     7  go get github.com/clsung/go-vendor-issue-14613
     8  go build -o $WORK/a.out -i github.com/clsung/go-vendor-issue-14613
     9  
    10  # test folder should work
    11  go test -i github.com/clsung/go-vendor-issue-14613
    12  go test github.com/clsung/go-vendor-issue-14613
    13  
    14  # test with specified _test.go should work too
    15  cd $GOPATH/src
    16  go test -i github.com/clsung/go-vendor-issue-14613/vendor_test.go
    17  go test github.com/clsung/go-vendor-issue-14613/vendor_test.go
    18  
    19  # test with imported and not used
    20  go test -i github.com/clsung/go-vendor-issue-14613/vendor/mylibtesttest/myapp/myapp_test.go
    21  ! go test github.com/clsung/go-vendor-issue-14613/vendor/mylibtesttest/myapp/myapp_test.go
    22  stderr 'imported and not used'
    23  

View as plain text