github.com/tendermint/tmlibs@v0.9.0/test.sh (about)

     1  #!/usr/bin/env bash
     2  set -e
     3  
     4  # run the linter
     5  # make metalinter_test
     6  
     7  # setup certs
     8  make gen_certs
     9  
    10  # run the unit tests with coverage
    11  echo "" > coverage.txt
    12  for d in $(go list ./... | grep -v vendor); do
    13  	go test -race -coverprofile=profile.out -covermode=atomic "$d"
    14  	if [ -f profile.out ]; then
    15  		cat profile.out >> coverage.txt
    16  		rm profile.out
    17  	fi
    18  done
    19  
    20  # cleanup certs
    21  make clean_certs