tendermint/test/test.sh

27 lines
703 B
Bash
Raw Normal View History

2016-07-23 09:48:30 -07:00
#! /bin/bash
# Top Level Testing Script
# See the github.com/tendermint/tendermint/test/README.md
2016-07-23 16:38:44 -07:00
2016-07-24 11:08:47 -07:00
echo ""
echo "* building docker file"
2016-07-23 16:38:44 -07:00
docker build -t tester -f ./test/Dockerfile .
2016-07-24 11:08:47 -07:00
echo ""
echo "* running go tests and app tests"
2016-07-23 16:38:44 -07:00
docker run -t tester bash test/run_test.sh
2016-07-24 11:08:47 -07:00
# test basic network connectivity
# by starting a local testnet and checking peers connect and make blocks
echo ""
echo "* running basic peer tests"
bash test/p2p/test.sh tester
# only run the cloud benchmark for releases
BRANCH=`git rev-parse --abbrev-ref HEAD`
if [[ $(echo "$BRANCH" | grep "release-") != "" ]]; then
echo ""
echo "* branch $BRANCH; running mintnet/netmon throughput benchmark"
2016-08-05 16:18:05 -07:00
bash test/net/test.sh
fi