test_apps changes: moved additional binaries building to get_test_deps target
This commit is contained in:
parent
cd2ba4aa7f
commit
afc08475c1
6
Makefile
6
Makefile
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue