From 93732b4c1ea2233fd807a02a3452d023169e4556 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Tue, 27 Feb 2018 16:34:35 +0400 Subject: [PATCH] remove old network tests Refs #1249 --- test/README.md | 5 ----- test/net/setup.sh | 26 -------------------------- test/net/start.sh | 29 ----------------------------- test/net/test.sh | 8 -------- test/test.sh | 10 ---------- 5 files changed, 78 deletions(-) delete mode 100644 test/net/setup.sh delete mode 100644 test/net/start.sh delete mode 100644 test/net/test.sh diff --git a/test/README.md b/test/README.md index d948083f2..d9f09fef7 100644 --- a/test/README.md +++ b/test/README.md @@ -23,8 +23,3 @@ and run the following tests in docker containers: If on a `release-x.x.x` branch, we also run - `go test` for all our dependency libs (test/test_libs.sh) -- network_testing - benchmark a mintnet based cloud deploy using netmon - - - - diff --git a/test/net/setup.sh b/test/net/setup.sh deleted file mode 100644 index 148a3c4b7..000000000 --- a/test/net/setup.sh +++ /dev/null @@ -1,26 +0,0 @@ -#! /bin/bash -set -eu - -# 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 -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 diff --git a/test/net/start.sh b/test/net/start.sh deleted file mode 100644 index 9e9ea3a0d..000000000 --- a/test/net/start.sh +++ /dev/null @@ -1,29 +0,0 @@ -#! /bin/bash -set -eu - -# start a testnet and benchmark throughput using mintnet+netmon via the network_testing repo - -DATACENTER=single -VALSETSIZE=4 -BLOCKSIZE=8092 -TX_SIZE=200 -NTXS=$((BLOCKSIZE*4)) -RESULTSDIR=results -CLOUD_PROVIDER=digitalocean - -set +u -if [[ "$MACH_PREFIX" == "" ]]; then - MACH_PREFIX=mach -fi -set -u - -cd "$GOPATH/src/github.com/tendermint/network_testing" -echo "... running network test $(pwd)" -TMHEAD=$(git rev-parse --abbrev-ref HEAD) TM_IMAGE="tendermint/tendermint" 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] diff --git a/test/net/test.sh b/test/net/test.sh deleted file mode 100644 index 19147eb83..000000000 --- a/test/net/test.sh +++ /dev/null @@ -1,8 +0,0 @@ -#! /bin/bash -set -eu - -# install mintnet, netmon, fetch network_testing -bash test/net/setup.sh - -# start the testnet -bash test/net/start.sh diff --git a/test/test.sh b/test/test.sh index 64d7bfc71..d0fafb5ee 100755 --- a/test/test.sh +++ b/test/test.sh @@ -48,13 +48,3 @@ docker cp run_test:/go/src/github.com/tendermint/tendermint/coverage.txt . echo echo "* [$(date +"%T")] running p2p tests on a local docker network" bash "$DIR/p2p/test.sh" tester - -# only run the cloud benchmark for releases -BRANCH=$(git rev-parse --abbrev-ref HEAD) -if [[ $(echo "$BRANCH" | grep "release-") != "" ]]; then - echo - echo "TODO: run network tests" - #echo "* branch $BRANCH; running mintnet/netmon throughput benchmark" - # TODO: replace mintnet - #bash "$DIR/net/test.sh" -fi