test_apps changes: moved additional binaries building to get_test_deps target

This commit is contained in:
Greg Szabo 2018-03-13 14:43:50 -04:00
parent cd2ba4aa7f
commit afc08475c1
2 changed files with 6 additions and 11 deletions

View File

@ -82,9 +82,13 @@ test_cover:
# run the go unit tests with coverage
bash test/test_cover.sh
get_test_deps:
go get github.com/tendermint/abci/...
go build -o $(GOPATH)/bin/grpc_client test/app/grpc_client.go
test_apps:
# run the app tests using bash
# requires `abci-cli` and `tendermint` binaries installed
# requires `grpc_cli`, `abci-cli` and `tendermint` binaries installed
bash test/app/test.sh
test_persistence:

View File

@ -32,15 +32,6 @@ function getCode() {
fi
}
# build grpc client if needed
if [[ "$GRPC_BROADCAST_TX" != "" ]]; then
if [ -f grpc_client ]; then
rm grpc_client
fi
echo "... building grpc_client"
go build -o grpc_client grpc_client.go
fi
function sendTx() {
TX=$1
set +u
@ -57,7 +48,7 @@ function sendTx() {
RESPONSE=$(echo "$RESPONSE" | jq '.result')
else
RESPONSE=$(./grpc_client "$TX")
RESPONSE=$(grpc_client "$TX")
IS_ERR=false
ERROR=""
fi