2016-07-24 14:08:47 -04:00
|
|
|
#! /bin/bash
|
2016-08-25 18:27:21 -04:00
|
|
|
set -eu
|
2016-07-24 14:08:47 -04:00
|
|
|
|
|
|
|
DOCKER_IMAGE=$1
|
|
|
|
NETWORK_NAME=local_testnet
|
|
|
|
|
2016-08-27 16:01:52 -04:00
|
|
|
cd $GOPATH/src/github.com/tendermint/tendermint
|
|
|
|
|
2016-07-24 14:08:47 -04:00
|
|
|
# start the testnet on a local network
|
|
|
|
bash test/p2p/local_testnet.sh $DOCKER_IMAGE $NETWORK_NAME
|
|
|
|
|
2016-08-25 18:27:21 -04:00
|
|
|
# test atomic broadcast
|
2016-08-27 16:01:52 -04:00
|
|
|
bash test/p2p/client.sh $DOCKER_IMAGE $NETWORK_NAME ab test/p2p/atomic_broadcast/test.sh
|
2016-08-25 18:27:21 -04:00
|
|
|
|
|
|
|
# test fast sync (from current state of network)
|
|
|
|
# run it on each of them
|
|
|
|
N=4
|
|
|
|
for i in `seq 1 $N`; do
|
2016-12-06 22:08:05 -05:00
|
|
|
bash test/p2p/fast_sync/test.sh $DOCKER_IMAGE $NETWORK_NAME $i $N
|
2016-08-25 18:27:21 -04:00
|
|
|
done
|