github.com/psexton/git-lfs@v2.1.1-0.20170517224304-289a18b2bc53+incompatible/script/test (about)

     1  #!/usr/bin/env bash
     2  #/ Usage: script/test          # run all non-vendored tests
     3  #/        script/test <subdir> # run just a package's tests
     4  
     5  script/fmt
     6  if [ $# -gt 0 ]; then
     7      GO15VENDOREXPERIMENT=1 go test "./$@"
     8  else
     9      # The following vendor test-exclusion grep-s typically need to match the same set in
    10      # debian/rules variable DH_GOLANG_EXCLUDES, so update those when adding here.
    11      GO15VENDOREXPERIMENT=1 go test \
    12        $(GO15VENDOREXPERIMENT=1 go list ./... \
    13            | grep -v "github.com/kr/pty" \
    14            | grep -v "github.com/kr/text" \
    15            | grep -v "github.com/olekukonko/ts" \
    16            | grep -v "github.com/pkg/errors" \
    17            | grep -v "github.com/stretchr/testify" \
    18            | grep -v "github.com/xeipuuv/gojsonreference" \
    19            | grep -v "github.com/xeipuuv/gojsonschema" \
    20        )
    21  fi