test: install glide for network test
This commit is contained in:
parent
642a24dc9c
commit
435d1e3da7
|
@ -20,7 +20,12 @@ set -u
|
|||
export TMHEAD=`git rev-parse --abbrev-ref HEAD`
|
||||
export TM_IMAGE="tendermint/tmbase"
|
||||
|
||||
# grab glide for dependency mgmt
|
||||
go get github.com/Masterminds/glide
|
||||
|
||||
# grab network monitor, install mintnet, netmon
|
||||
# these might err
|
||||
echo "... fetching repos. ignore go get errors"
|
||||
set +e
|
||||
go get github.com/tendermint/network_testing
|
||||
go get github.com/tendermint/mintnet
|
||||
|
@ -28,20 +33,26 @@ go get github.com/tendermint/netmon
|
|||
set -e
|
||||
|
||||
# install vendored deps
|
||||
echo "GOPATH $GOPATH"
|
||||
|
||||
cd $GOPATH/src/github.com/tendermint/mintnet
|
||||
echo "... install mintnet dir $(pwd)"
|
||||
glide install
|
||||
go install
|
||||
cd $GOPATH/src/github.com/tendermint/netmon
|
||||
echo "... install netmon dir $(pwd)"
|
||||
glide install
|
||||
go install
|
||||
|
||||
cd $GOPATH/src/github.com/tendermint/network_testing
|
||||
echo "... running network test $(pwd)"
|
||||
bash experiments/exp_throughput.sh $DATACENTER $VALSETSIZE $BLOCKSIZE $TX_SIZE $NTXS $MACH_PREFIX $RESULTSDIR $CLOUD_PROVIDER
|
||||
|
||||
# TODO: publish result!
|
||||
|
||||
# cleanup
|
||||
|
||||
echo "... destroying machines"
|
||||
mintnet destroy --machines $MACH_PREFIX[1-$VALSETSIZE]
|
||||
|
||||
|
||||
|
|
26
test/test.sh
26
test/test.sh
|
@ -8,19 +8,19 @@ echo ""
|
|||
echo "* building docker image"
|
||||
bash ./test/docker/build.sh
|
||||
|
||||
#echo ""
|
||||
#echo "* running go tests and app tests in docker container"
|
||||
#docker run --name run_test -t tester bash test/run_test.sh
|
||||
#
|
||||
## copy the coverage results out of docker container
|
||||
#docker cp run_test:/go/src/github.com/tendermint/tendermint/coverage.txt .
|
||||
#
|
||||
## test basic network connectivity
|
||||
## by starting a local testnet and checking peers connect and make blocks
|
||||
#echo ""
|
||||
#echo "* running p2p tests on a local docker network"
|
||||
#bash test/p2p/test.sh tester
|
||||
#
|
||||
echo ""
|
||||
echo "* running go tests and app tests in docker container"
|
||||
docker run --name run_test -t tester bash test/run_test.sh
|
||||
|
||||
# copy the coverage results out of docker container
|
||||
docker cp run_test:/go/src/github.com/tendermint/tendermint/coverage.txt .
|
||||
|
||||
# test basic network connectivity
|
||||
# by starting a local testnet and checking peers connect and make blocks
|
||||
echo ""
|
||||
echo "* running p2p tests on a local docker network"
|
||||
bash test/p2p/test.sh tester
|
||||
|
||||
# only run the cloud benchmark for releases
|
||||
BRANCH=`git rev-parse --abbrev-ref HEAD`
|
||||
if [[ $(echo "$BRANCH" | grep "release-") != "" ]]; then
|
||||
|
|
Loading…
Reference in New Issue