diff options
Diffstat (limited to 'src/cmd/vendor/github.com/google/pprof/test.sh')
| -rwxr-xr-x | src/cmd/vendor/github.com/google/pprof/test.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/cmd/vendor/github.com/google/pprof/test.sh b/src/cmd/vendor/github.com/google/pprof/test.sh index 81b9089131..e9aff2b409 100755 --- a/src/cmd/vendor/github.com/google/pprof/test.sh +++ b/src/cmd/vendor/github.com/google/pprof/test.sh @@ -1,13 +1,19 @@ #!/usr/bin/env bash set -e +set -x MODE=atomic echo "mode: $MODE" > coverage.txt -PKG=$(go list ./... | grep -v /vendor/) +# All packages. +PKG=$(go list ./...) staticcheck $PKG unused $PKG + +# Packages that have any tests. +PKG=$(go list -f '{{if .TestGoFiles}} {{.ImportPath}} {{end}}' ./...) + go test -v $PKG for d in $PKG; do @@ -17,3 +23,4 @@ for d in $PKG; do rm profile.out fi done + |
