OSDN Git Service

new repo
[bytom/vapor.git] / vendor / github.com / tendermint / abci / tests / test_app / test.sh
1 #! /bin/bash
2 set -e
3
4 # These tests spawn the counter app and server by execing the ABCI_APP command and run some simple client tests against it
5
6 # Get the directory of where this script is.
7 SOURCE="${BASH_SOURCE[0]}"
8 while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
9 DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
10
11 # Change into that dir because we expect that.
12 cd "$DIR"
13
14 # test golang counter
15 ABCI_APP="counter" go run  ./*.go
16
17 # test golang counter via grpc
18 ABCI_APP="counter -abci=grpc" ABCI="grpc" go run ./*.go
19
20 # test nodejs counter
21 # TODO: fix node app
22 #ABCI_APP="node $GOPATH/src/github.com/tendermint/js-abci/example/app.js" go test -test.run TestCounter