mirror of
https://github.com/octoleo/restic.git
synced 2024-11-23 21:27:34 +00:00
11 lines
210 B
Bash
11 lines
210 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
TARGETFILE="$1"
|
||
|
|
||
|
go list ./... | while read pkg; do
|
||
|
go test -covermode=count -coverprofile=$(base64 <<< $pkg).cov $pkg
|
||
|
done
|
||
|
|
||
|
echo "mode: count" > $TARGETFILE
|
||
|
tail -q -n +2 *.cov >> $TARGETFILE
|