github.com/gramework/gramework@v1.8.1-0.20231027140105-82555c9057f5/.test.sh (about) 1 #!/usr/bin/env bash 2 3 set -e 4 echo "" > coverage.txt 5 6 LIST=$(go list ./... | grep -v vendor) 7 echo LIST: ${LIST} 8 9 for d in $(go list ./... | grep -v vendor); do 10 sudo GOPATH=$GOPATH GOROOT=$GOROOT $(which go) test -timeout=60m -tags=letsstage -bench=. -short=$GRAMEWORK_SHORT -benchmem -v -race -coverprofile=profile.out -covermode=atomic $d 11 if [ -f profile.out ]; then 12 cat profile.out >> coverage.txt 13 rm -rf profile.out 14 fi 15 done