mirror of
https://github.com/restic/restic.git
synced 2026-09-27 22:40:29 +00:00
Makefile: Split out coverage into a shell script
This commit is contained in:
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user