You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
335 B

  1. #! /bin/bash
  2. PKGS=$(go list github.com/tendermint/tendermint/... | grep -v /vendor/)
  3. set -e
  4. echo "mode: atomic" > coverage.txt
  5. for pkg in ${PKGS[@]}; do
  6. go test -v -timeout 30m -race -coverprofile=profile.out -covermode=atomic "$pkg"
  7. if [ -f profile.out ]; then
  8. tail -n +2 profile.out >> coverage.txt;
  9. rm profile.out
  10. fi
  11. done