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.

26 lines
703 B

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