https://github.com/tendermint/tendermint
Raw File
Tip revision: a19bcb760689b568d38c90fc0e1a17b874a03e01 authored by M. J. Fromberger on 22 May 2022, 01:24:37 UTC
Merge branch 'master' into wb/rfc-017-transition
Tip revision: a19bcb7
test_cover.sh
#! /bin/bash

PKGS=$(go list github.com/tendermint/tendermint/...)

set -e

echo "mode: atomic" > coverage.txt
for pkg in ${PKGS[@]}; do
	go test -timeout 5m -race -coverprofile=profile.out "$pkg"
	if [ -f profile.out ]; then
		tail -n +2 profile.out >> coverage.txt;
		rm profile.out
	fi
done
back to top