github.com/jgrancell/metasync@v0.0.0-20220105143315-c43793d9d9c1/go.test.sh (about) 1 #!/bin/bash 2 3 set -e 4 echo "mode: atomic" > coverage.txt 5 6 for FILE in $(go list ./... | grep -v vendor); do 7 go test -race -coverprofile=profile.out -covermode=atomic "$FILE" 8 if [ -f profile.out ]; then 9 sed -i '/^mode/d' profile.out 10 cat profile.out >> coverage.txt 11 rm profile.out 12 fi 13 done