1
0
mirror of https://github.com/restic/restic.git synced 2024-07-02 08:40:55 +02:00
restic/coverage_all.sh
2015-06-21 17:40:21 +02:00

11 lines
228 B
Bash
Executable File

#!/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 */*.cov */*/*.cov >> $TARGETFILE