|
|
@ -4,11 +4,13 @@ set -eu |
|
|
|
DOCKER_IMAGE=$1 |
|
|
|
NETWORK_NAME=local_testnet |
|
|
|
|
|
|
|
cd $GOPATH/src/github.com/tendermint/tendermint |
|
|
|
|
|
|
|
# start the testnet on a local network |
|
|
|
bash test/p2p/local_testnet.sh $DOCKER_IMAGE $NETWORK_NAME |
|
|
|
|
|
|
|
# test atomic broadcast |
|
|
|
bash test/p2p/client.sh $DOCKER_IMAGE $NETWORK_NAME test/p2p/atomic_broadcast/test.sh |
|
|
|
bash test/p2p/client.sh $DOCKER_IMAGE $NETWORK_NAME ab test/p2p/atomic_broadcast/test.sh |
|
|
|
|
|
|
|
# test fast sync (from current state of network) |
|
|
|
# run it on each of them |
|
|
@ -17,7 +19,9 @@ for i in `seq 1 $N`; do |
|
|
|
echo "Testing fasysync on node $i" |
|
|
|
|
|
|
|
# kill peer |
|
|
|
set +e # circle sigh :( |
|
|
|
docker rm -vf local_testnet_$i |
|
|
|
set -e |
|
|
|
|
|
|
|
# restart peer - should have an empty blockchain |
|
|
|
SEEDS="$(test/p2p/ip.sh 1):46656" |
|
|
@ -26,7 +30,7 @@ for i in `seq 1 $N`; do |
|
|
|
done |
|
|
|
bash test/p2p/peer.sh $DOCKER_IMAGE $NETWORK_NAME $i $SEEDS |
|
|
|
|
|
|
|
bash test/p2p/client.sh $DOCKER_IMAGE $NETWORK_NAME "test/p2p/fast_sync/test.sh $i" |
|
|
|
bash test/p2p/client.sh $DOCKER_IMAGE $NETWORK_NAME fs_$i "test/p2p/fast_sync/test.sh $i" |
|
|
|
done |
|
|
|
echo "" |
|
|
|
echo "PASS" |
|
|
|