https://github.com/tendermint/tendermint
Raw File
Tip revision: 7391b6c8f1d83851bed0d0ce3cc29cd7a3be94ba authored by Callum Waters on 25 July 2022, 10:04:38 UTC
update upgrade harness to work with the new changes
Tip revision: 7391b6c
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