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
|
# run the go unit tests with coverage
|
||||||
bash test/test_cover.sh
|
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:
|
test_apps:
|
||||||
# run the app tests using bash
|
# 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
|
bash test/app/test.sh
|
||||||
|
|
||||||
test_persistence:
|
test_persistence:
|
||||||
|
|
|
@ -32,15 +32,6 @@ function getCode() {
|
||||||
fi
|
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() {
|
function sendTx() {
|
||||||
TX=$1
|
TX=$1
|
||||||
set +u
|
set +u
|
||||||
|
@ -57,7 +48,7 @@ function sendTx() {
|
||||||
|
|
||||||
RESPONSE=$(echo "$RESPONSE" | jq '.result')
|
RESPONSE=$(echo "$RESPONSE" | jq '.result')
|
||||||
else
|
else
|
||||||
RESPONSE=$(./grpc_client "$TX")
|
RESPONSE=$(grpc_client "$TX")
|
||||||
IS_ERR=false
|
IS_ERR=false
|
||||||
ERROR=""
|
ERROR=""
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue