mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
13 lines
274 B
Bash
13 lines
274 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
|
||
|
|
set -e -x
|
||
|
|
echo "" > coverage.txt
|
||
|
|
|
||
|
|
for d in $(go list ./... | grep -v vendor); do
|
||
|
|
go test -race -coverprofile=profile.out -covermode=atomic $d
|
||
|
|
if [ -f profile.out ]; then
|
||
|
|
cat profile.out >> coverage.txt
|
||
|
|
rm profile.out
|
||
|
|
fi
|
||
|
|
done
|