forked from TrueCloudLab/restic
10 lines
228 B
Bash
Executable file
10 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
|