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.

33 lines
1.1 KiB

  1. #! /bin/bash
  2. set -eu
  3. DOCKER_IMAGE=$1
  4. NETWORK_NAME=local_testnet
  5. N=4
  6. PROXY_APP=persistent_dummy
  7. cd $GOPATH/src/github.com/tendermint/tendermint
  8. # stop the existing testnet and remove local network
  9. set +e
  10. bash test/p2p/local_testnet_stop.sh $NETWORK_NAME $N
  11. set -e
  12. # start the testnet on a local network
  13. # NOTE we re-use the same network for all tests
  14. bash test/p2p/local_testnet_start.sh $DOCKER_IMAGE $NETWORK_NAME $N $PROXY_APP
  15. # test basic connectivity and consensus
  16. # start client container and check the num peers and height for all nodes
  17. bash test/p2p/client.sh $DOCKER_IMAGE $NETWORK_NAME basic "test/p2p/basic/test.sh $N"
  18. # test atomic broadcast:
  19. # start client container and test sending a tx to each node
  20. bash test/p2p/client.sh $DOCKER_IMAGE $NETWORK_NAME ab "test/p2p/atomic_broadcast/test.sh $N"
  21. # test fast sync (from current state of network):
  22. # for each node, kill it and readd via fast sync
  23. bash test/p2p/fast_sync/test.sh $DOCKER_IMAGE $NETWORK_NAME $N $PROXY_APP
  24. # test killing all peers
  25. bash test/p2p/kill_all/test.sh $DOCKER_IMAGE $NETWORK_NAME $N 3