diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-04-29 19:43:38 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-04-29 19:43:38 +0800 |
commit | bac4440e1751fd3b71f8271260d1c8af236d2cec (patch) | |
tree | 7244f37c5c6120ecfb2afd996495bbb4a4810d7e /gocoverage.sh | |
parent | 32373e3837c5fc3def8050d6de8be34946a3fd75 (diff) | |
parent | aa03e53ca8d55e74e562f5f56d90e4fd2579fb4e (diff) | |
download | dexon-bac4440e1751fd3b71f8271260d1c8af236d2cec.tar dexon-bac4440e1751fd3b71f8271260d1c8af236d2cec.tar.gz dexon-bac4440e1751fd3b71f8271260d1c8af236d2cec.tar.bz2 dexon-bac4440e1751fd3b71f8271260d1c8af236d2cec.tar.lz dexon-bac4440e1751fd3b71f8271260d1c8af236d2cec.tar.xz dexon-bac4440e1751fd3b71f8271260d1c8af236d2cec.tar.zst dexon-bac4440e1751fd3b71f8271260d1c8af236d2cec.zip |
Merge pull request #822 from fjl/makefile-improvements
Makefile improvements
Diffstat (limited to 'gocoverage.sh')
-rwxr-xr-x | gocoverage.sh | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/gocoverage.sh b/gocoverage.sh deleted file mode 100755 index 5479d8d3b..000000000 --- a/gocoverage.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - -set -e - -# Add godep workspace to GOPATH. We do it manually instead of using -# 'godep go test' or 'godep restore' so godep doesn't need to be installed. -GOPATH="$PWD/Godeps/_workspace:$GOPATH" - -# Install packages before testing. Not doing this would cause -# 'go test' to recompile all package dependencies before testing each package. -go install ./... - -# Run test coverage on each subdirectories and merge the coverage profile. -echo "mode: count" > profile.cov - -# Standard go tooling behavior is to ignore dirs with leading underscors -for dir in $(find . -maxdepth 10 -not -path './.git*' -not -path '*/_*' -type d); -do -if ls $dir/*.go &> /dev/null; then - # echo $dir - if [[ $dir != "./tests/vm" && $dir != "." ]] - then - go test -covermode=count -coverprofile=$dir/profile.tmp $dir - fi - if [ -f $dir/profile.tmp ] - then - cat $dir/profile.tmp | tail -n +2 >> profile.cov - rm $dir/profile.tmp - fi -fi -done |