File: coverage.sh

package info (click to toggle)
golang-github-envoyproxy-go-control-plane 0.13.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,776 kB
  • sloc: sh: 190; makefile: 110
file content (11 lines) | stat: -rwxr-xr-x 236 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash
set -e
echo "" > coverage.out

for d in $(go list ./pkg/...); do
	go test -race -coverprofile=profile.out -covermode=atomic $d
	if [ -f profile.out ]; then
		cat profile.out >> coverage.out
		rm profile.out
	fi
done