2016-07-23 19:38:44 -04:00
|
|
|
#! /bin/bash
|
2016-07-24 14:08:47 -04:00
|
|
|
set -e
|
2016-07-23 19:38:44 -04:00
|
|
|
|
|
|
|
echo `pwd`
|
|
|
|
|
|
|
|
BRANCH=`git rev-parse --abbrev-ref HEAD`
|
|
|
|
echo "Current branch: $BRANCH"
|
|
|
|
|
2016-07-24 14:08:47 -04:00
|
|
|
# go test --race github.com/tendermint/tendermint/...
|
2016-07-23 19:38:44 -04:00
|
|
|
make test_race
|
|
|
|
|
2016-07-24 14:08:47 -04:00
|
|
|
# run the broadcast_tx tests
|
|
|
|
bash test/broadcast_tx/test.sh
|
|
|
|
|
2016-07-23 19:38:44 -04:00
|
|
|
if [[ "$BRANCH" == "master" || "$BRANCH" == "staging" ]]; then
|
2016-07-24 14:08:47 -04:00
|
|
|
echo ""
|
|
|
|
echo "* branch $BRANCH; testing libs"
|
|
|
|
# checkout every github.com/tendermint dir and run its tests
|
2016-07-23 19:38:44 -04:00
|
|
|
bash test/test_libs.sh
|
2016-07-24 14:08:47 -04:00
|
|
|
|
|
|
|
# TODO: mintnet/netmon
|
2016-07-23 19:38:44 -04:00
|
|
|
fi
|