2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-24 13:47:42 +00:00

Use run_tests.go for testing coverage

This commit is contained in:
Alexander Neumann 2015-06-11 21:06:18 +02:00
parent d8d09b6d69
commit e071ca57d5
2 changed files with 2 additions and 18 deletions

View File

@ -61,14 +61,8 @@ test-integration: .gopath
-test.integration \ -test.integration \
-test.datafile=$(PWD)/testsuite/fake-data.tar.gz -test.datafile=$(PWD)/testsuite/fake-data.tar.gz
all.cov: .gopath $(SOURCE) test-integration all.cov: .gopath $(SOURCE)
cd $(BASEPATH) && \ cd $(BASEPATH) && go run run_tests.go all.cov
go list ./... | while read pkg; do \
go test -covermode=count -coverprofile=$$(echo $$pkg | base64).cov $$pkg; \
done
echo "mode: count" > all.cov
tail -q -n +2 *.cov >> all.cov
env: env:
@echo export GOPATH=\"$(GOPATH)\" @echo export GOPATH=\"$(GOPATH)\"

View File

@ -1,10 +0,0 @@
#!/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