github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/tendermint/test/test_cover.sh (about)

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