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.

30 lines
877 B

8 years ago
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 --name run_test -t tester bash test/run_test.sh
  11. # copy the coverage results out of docker container
  12. docker cp run_test:/go/src/github.com/tendermint/tendermint/coverage.txt .
  13. # test basic network connectivity
  14. # by starting a local testnet and checking peers connect and make blocks
  15. echo ""
  16. echo "* running p2p tests on a local docker network"
  17. bash test/p2p/test.sh tester
  18. # only run the cloud benchmark for releases
  19. BRANCH=`git rev-parse --abbrev-ref HEAD`
  20. if [[ $(echo "$BRANCH" | grep "release-") != "" ]]; then
  21. echo ""
  22. echo "* branch $BRANCH; running mintnet/netmon throughput benchmark"
  23. bash test/net/test.sh
  24. fi