mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-25 17:34:36 +00:00
modify test scripts to use relative paths
This commit is contained in:
@@ -3,14 +3,19 @@ set -e
|
||||
|
||||
# These tests spawn the counter app and server by execing the ABCI_APP command and run some simple client tests against it
|
||||
|
||||
ROOT=$GOPATH/src/github.com/tendermint/abci/tests/test_app
|
||||
cd $ROOT
|
||||
# Get the directory of where this script is.
|
||||
SOURCE="${BASH_SOURCE[0]}"
|
||||
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
|
||||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||
|
||||
# Change into that dir because we expect that.
|
||||
cd "$DIR"
|
||||
|
||||
# test golang counter
|
||||
ABCI_APP="counter" go run *.go
|
||||
ABCI_APP="counter" go run ./*.go
|
||||
|
||||
# test golang counter via grpc
|
||||
ABCI_APP="counter -abci=grpc" ABCI="grpc" go run *.go
|
||||
ABCI_APP="counter -abci=grpc" ABCI="grpc" go run ./*.go
|
||||
|
||||
# test nodejs counter
|
||||
# TODO: fix node app
|
||||
|
||||
Reference in New Issue
Block a user