| jrperritt | c8f12c6 | 2016-10-11 11:29:10 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| jrperritt | 5cb543c | 2017-02-20 14:03:36 -0600 | [diff] [blame] | 2 | |
| 3 | set -e | ||||
| 4 | |||||
| jrperritt | c8f12c6 | 2016-10-11 11:29:10 -0500 | [diff] [blame] | 5 | n=1 |
| 6 | for testpkg in $(go list ./testing ./.../testing); do | ||||
| 7 | covpkg="${testpkg/"/testing"/}" | ||||
| 8 | go test -covermode count -coverprofile "testing_"$n.coverprofile -coverpkg $covpkg $testpkg 2>/dev/null | ||||
| 9 | n=$((n+1)) | ||||
| 10 | done | ||||
| 11 | gocovmerge `ls *.coverprofile` > cover.out | ||||
| 12 | rm *.coverprofile | ||||