Improve test script

add usage
verify flag value for -i is numeric
allow multiple targets on the command line
actually capture coverage output
fix lingering GOFLAGS undef issue
fix issue with -i not working at all: ((x++)) returns 1 when x is 0, which is
  incompatible with "set -e"
This commit is contained in:
Tim Hockin
2014-08-29 11:26:59 -07:00
parent 42eea82461
commit 640a1d323d
3 changed files with 81 additions and 36 deletions

View File

@@ -36,7 +36,8 @@ trap cleanup EXIT SIGINT
echo
echo Integration test cases ...
echo
$(dirname $0)/../hack/test-go.sh test/integration -tags 'integration no-docker'
GOFLAGS="-tags 'integration no-docker'" \
$(dirname $0)/../hack/test-go.sh test/integration
# leave etcd running if integration tests fail
trap "echo etcd still running" EXIT