tests: broadcast_tx with tmsp; p2p

This commit is contained in:
Ethan Buchman
2016-07-24 14:08:47 -04:00
parent 8fd216b4f6
commit 8987d29bee
29 changed files with 539 additions and 18 deletions

7
scripts/glide/parse.sh Normal file
View File

@@ -0,0 +1,7 @@
#! /bin/bash
set -euo pipefail
GLIDE=$1
LIB=$2
cat $GLIDE | grep -A1 $LIB | grep -v $LIB | awk '{print $2}'

View File

@@ -7,12 +7,7 @@ IFS=$'\n\t'
GLIDE=$1
LIB=$2
# get vendored commit for given lib
function parseGlide() {
cat $1 | grep -A1 $2 | grep -v $2 | awk '{print $2}'
}
OLD_COMMIT=`parseGlide $GLIDE $LIB`
OLD_COMMIT=`bash scripts/glide/parse.sh $GLIDE $LIB`
PWD=`pwd`
cd $GOPATH/src/github.com/tendermint/$LIB

View File

@@ -0,0 +1,11 @@
#! /bin/bash
go get github.com/tendermint/tmsp/...
COMMIT=`bash scripts/glide/parse.sh $(pwd)/glide.lock tmsp`
cd $GOPATH/src/github.com/tendermint/tmsp
git checkout $COMMIT
go install ./cmd/...