https://github.com/tendermint/tendermint
Raw File
Tip revision: 3f11d756d4dbae4180eeda3d37267cc4bca47a65 authored by Callum Waters on 05 July 2022, 17:40:03 UTC
Merge branch 'v0.35.x' into callum/mempool-full-error
Tip revision: 3f11d75
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