https://github.com/tendermint/tendermint
Raw File
Tip revision: f5f1416a149e525d9f48c8762c7999809d6e9395 authored by bradyjoestar on 18 January 2019, 08:09:12 UTC
json2wal: increase reader's buffer size (#3147)
Tip revision: f5f1416
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 -covermode=atomic "$pkg"
	if [ -f profile.out ]; then
		tail -n +2 profile.out >> coverage.txt;
		rm profile.out
	fi
done
back to top