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
890 B

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