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.

23 lines
764 B

  1. #! /bin/bash
  2. set -eu
  3. DOCKER_IMAGE=$1
  4. NETWORK_NAME=local_testnet
  5. N=4
  6. cd $GOPATH/src/github.com/tendermint/tendermint
  7. # start the testnet on a local network
  8. bash test/p2p/local_testnet.sh $DOCKER_IMAGE $NETWORK_NAME $N
  9. # test basic connectivity and consensus
  10. # start client container and check the num peers and height for all nodes
  11. bash test/p2p/client.sh $DOCKER_IMAGE $NETWORK_NAME basic "test/p2p/basic/test.sh $N"
  12. # test atomic broadcast:
  13. # start client container and test sending a tx to each node
  14. bash test/p2p/client.sh $DOCKER_IMAGE $NETWORK_NAME ab "test/p2p/atomic_broadcast/test.sh $N"
  15. # test fast sync (from current state of network):
  16. # for each node, kill it and readd via fast sync
  17. bash test/p2p/fast_sync/test.sh $DOCKER_IMAGE $NETWORK_NAME $N