git-lfs/script/test

22 lines
834 B
Plaintext
Raw Normal View History

2015-07-30 02:37:31 +00:00
#!/usr/bin/env bash
#/ Usage: script/test # run all non-vendored tests
#/ script/test <subdir> # run just a package's tests
2013-10-04 13:48:57 +00:00
script/fmt
if [ $# -gt 0 ]; then
GO15VENDOREXPERIMENT=1 go test "./$@"
else
# The following vendor test-exclusion grep-s typically need to match the same set in
# debian/rules variable DH_GOLANG_EXCLUDES, so update those when adding here.
GO15VENDOREXPERIMENT=1 go test \
$(GO15VENDOREXPERIMENT=1 go list ./... \
2016-08-17 17:22:53 +00:00
| grep -v "github.com/kr/pty" \
| grep -v "github.com/kr/text" \
| grep -v "github.com/olekukonko/ts" \
| grep -v "github.com/pkg/errors" \
2016-08-17 17:22:53 +00:00
| grep -v "github.com/stretchr/testify" \
| grep -v "github.com/xeipuuv/gojsonreference" \
| grep -v "github.com/xeipuuv/gojsonschema" \
)
fi