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.

34 lines
1.1 KiB

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. # sometimes its helpful to mount the local test folder
  11. # -v $GOPATH/src/github.com/tendermint/tendermint/test:/go/src/github.com/tendermint/tendermint/test
  12. docker run --name run_test -t tester bash test/run_test.sh
  13. # copy the coverage results out of docker container
  14. docker cp run_test:/go/src/github.com/tendermint/tendermint/coverage.txt .
  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. # only run the cloud benchmark for releases
  21. BRANCH=`git rev-parse --abbrev-ref HEAD`
  22. if [[ $(echo "$BRANCH" | grep "release-") != "" ]]; then
  23. echo ""
  24. echo "TODO: run network tests"
  25. #echo "* branch $BRANCH; running mintnet/netmon throughput benchmark"
  26. # TODO: replace mintnet
  27. #bash test/net/test.sh
  28. fi