You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
733 B

8 years ago
  1. #! /bin/bash
  2. set -eu
  3. # Top Level Testing Script
  4. # See the github.com/tendermint/tendermint/test/README.md
  5. echo ""
  6. echo "* building docker image"
  7. bash ./test/docker/build.sh
  8. echo ""
  9. echo "* running go tests and app tests in docker container"
  10. docker run -t tester bash test/run_test.sh
  11. # test basic network connectivity
  12. # by starting a local testnet and checking peers connect and make blocks
  13. echo ""
  14. echo "* running p2p tests on a local docker network"
  15. bash test/p2p/test.sh tester
  16. # only run the cloud benchmark for releases
  17. BRANCH=`git rev-parse --abbrev-ref HEAD`
  18. if [[ $(echo "$BRANCH" | grep "release-") != "" ]]; then
  19. echo ""
  20. echo "* branch $BRANCH; running mintnet/netmon throughput benchmark"
  21. bash test/net/test.sh
  22. fi